change from ienumerable to list
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
return unit;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Unit>> GetAllUnitsAsync()
|
||||
public async Task<IList<Unit>> GetAllUnitsAsync()
|
||||
{
|
||||
return await _context.Units.ToListAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user