Пример #1
0
        public void fillMenu()
        {
            var imparirments = Mapper.Map <IList <Impairment>, IList <ImpairmentViewModel> >(ImpairmentManager.GetAllImpairments()).ToList();

            ViewBag.impairmentsMenu = imparirments;
            var preventions = Mapper.Map <IList <Prevention>, IList <PreventionViewModel> >(preventionManager.GetAllPreventions()).ToList();

            ViewBag.preventionsMenu = preventions;
            var rights = Mapper.Map <IList <Right>, IList <RightViewModel> >(rightManager.GetAllRights()).ToList();

            ViewBag.rightsMenu = rights;
        }