Ejemplo n.º 1
0
        private List <IncidentType> GetIncidentTypes()
        {
            var incidentHistoryTypeList = new IncidentTypeServices().GetAllOrderedIncidentTypes() ?? new List <IncidentType>();

            if (!incidentHistoryTypeList.Any())
            {
                return(new List <IncidentType>());
            }

            return(incidentHistoryTypeList);
        }
        public ViewResult IncidentTypes()
        {
            var productList = new IncidentTypeServices().GetAllOrderedIncidentTypes() ?? new List <IncidentType>();

            if (!productList.Any())
            {
                ViewBag.Title = "Incident Type SetUp";
                return(View(productList));
            }

            ViewBag.Title = "Manage Incident Types";
            return(View(productList));
        }