public ResultRestaurantContent getFirstPageByID(MODEL.Criteria.reqRestaurant req) { ResultRestaurantContent result = new ResultRestaurantContent(); result.ResultOk = "false"; RestaurantBLL sv = new RestaurantBLL(); try { result = sv.getFirstPage(req); } catch (Exception e) { result.ErrorMessage = e.Message; result.ResultOk = "false"; } return(result); }
public ResultRestaurantContent getFirstPage() { ResultRestaurantContent result = new ResultRestaurantContent(); result.ResultOk = "false"; RestaurantBLL sv = new RestaurantBLL(); try { result = sv.getFirstPage(null); } catch (Exception e) { result.ErrorMessage = e.Message; result.ResultOk = "false"; } return(result); }