Ejemplo n.º 1
0
 public ActionResult GetMessageEvents()
 {
     try
     {
         var eventList = EnumToObjList.ConvertEnumToList(typeof(MessageEventEnum));
         return(Json(eventList.OrderBy(m => m.Name).ToList(), JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         return(Json(new List <GenericObject>(), JsonRequestBehavior.AllowGet));
     }
 }
Ejemplo n.º 2
0
        //public ActionResult RefreshApplicationStage()
        //{
        //    try
        //    {
        //        return Json(getStagesWithProcesses(), JsonRequestBehavior.AllowGet);

        //    }
        //    catch (Exception)
        //    {
        //        return Json(new GenericEligibilityList(), JsonRequestBehavior.AllowGet);
        //    }
        //}


        private List <GenericObject> getCriteriaRules()
        {
            try
            {
                var itemList = EnumToObjList.ConvertEnumToList(typeof(EnumCheckListCriteriaRule));
                return(itemList);
            }
            catch (Exception)
            {
                return(new List <GenericObject>());
            }
        }