починил услугу и чет еще

This commit is contained in:
Milana Ievlewa 2024-04-30 15:21:40 +03:00
parent b340839595
commit 34e2825c61

View File

@ -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)