Example #1
0
        public eMenuFood geteMenu([FromBody] MODEL.Criteria.reqeMenu req)
        {
            eMenuFood result = new eMenuFood();

            result.ResultOk = "false";
            eMenuBLL sv = new eMenuBLL();

            try
            {
                //Veriy Data

                if (req != null)
                {
                    return(sv.getFoodseMenu(req));
                }
            }
            catch (Exception e)
            {
                result.ErrorMessage = e.Message;
                result.ResultOk     = "false";
            }
            return(result);
        }
Example #2
0
        public Result insertMenu([FromBody] MODEL.Criteria.reqeMenu req)
        {
            Result result = new Result();

            result.ResultOk = "false";
            eMenuBLL sv = new eMenuBLL();

            try
            {
                //Veriy Data

                if (req != null)
                {
                    return(sv.InsertMenu(req));
                }
            }
            catch (Exception e)
            {
                result.ErrorMessage = e.Message;
                result.ResultOk     = "false";
            }
            return(result);
        }