public static List <ModelLibrary.Restaurant> GetRestaurantsPaged(int zipcode = 0, int categoryId = 0, int page = 0, int amount = 10, bool verified = true, bool discontinued = false) { var res = RestaurantsDb.GetRestaurantsPaged(zipcode, categoryId, page, amount, verified, discontinued); var mRes = ConvertRestaurantListToModel(res); return(mRes); }
public static ModelLibrary.Restaurant GetRestaurant(int restaurantId) { var res = ConvertRestaurantToModel(RestaurantsDb.GetRestaurant(restaurantId)); return(res); }