Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }