public SearchFoodResultModel FindProvidersWithinRange(SearchFoodModel searchModel)
 {
     if (searchModel == null)
     {
         return null;
     }
     var providers = DbContext.GetProvidersInRange(searchModel.Latitude, searchModel.Longitude, searchModel.Range, searchModel.ConvertToMile).Select(ProviderModel.CreateFromEntity).ToList();
     var users = DbContext.GetUsers();
     return new SearchFoodResultModel { ProviderInfos = providers.Select(p => new UserProviderModel { UserInfo = UserModel.CreateFromEntity(users.Single(u => u.UserId == p.ProviderId)), ProviderInfo = p }).ToList() };
 }
 public SearchFoodResultModel FindProvidersWithinRange(SearchFoodModel searchModel)
 {
     return Service.FindProvidersWithinRange(searchModel);
 }