public async Task <object> GetRecommendationService(int accountId, bool IsParking, bool IsChildrens, bool IsDiscCards) { var services = await _servicesService.GetRecommendationServices(accountId, IsParking, IsChildrens, IsDiscCards); if (services == null) { return(JsonResults.Error(errorNum: 404, errorMessage: "Services not found")); } var models = new List <ServicesViewModel>(); foreach (var service in services) { models.Add(await GetServiceModelWithRatings(service, accountId)); } return(JsonResults.Success(models)); }