починил услугу и чет еще
This commit is contained in:
parent
b340839595
commit
34e2825c61
@ -45,14 +45,6 @@ namespace BeautySalonDatabaseImplement.Implements
|
||||
?.GetViewModel;
|
||||
}
|
||||
|
||||
public int GetNumberOfPages(int userId, int pageSize)
|
||||
{
|
||||
using var context = new BeautySalonDatabase();
|
||||
int carsCount = context.Services.Where(c => c.Id == userId).Count();
|
||||
int numberOfpages = (int)Math.Ceiling((double)carsCount / pageSize);
|
||||
return numberOfpages != 0 ? numberOfpages : 1;
|
||||
}
|
||||
|
||||
public List<ServiceViewModel> GetFilteredList(ServiceSearchModel model)
|
||||
{
|
||||
if (model == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user