Exemple #1
0
 public OutPutDTO GetListApplications()
 {
     try
     {
         List <Application> lstResult = commonBu.GetAll <Application>();
         return(new OutPutDTO(true, Constants.STATUS_CODE.SUCCESS, Constants.STATUS_MESSAGE.SUCCESS, lstResult));
     }
     catch (Exception ex)
     {
         return(new OutPutDTO(false, Constants.STATUS_CODE.EXCEPTION, Constants.STATUS_MESSAGE.EXCEPTION + ex.Message, null));
     }
 }
        public JsonResult GetListMenu()
        {
            List <Menu> lstResult = commonBu.GetAll <Menu>();

            return(Json(lstResult, JsonRequestBehavior.AllowGet));
        }