Пример #1
0
        public ActionResult Resident(int?residentID = null)
        {
            var item = residentService.GetResidentItem();

            InitializeResidentViewBugs();
            return(View("Resident", item));
        }
 public ActionResult ResidentTemplate(int?residentID = null)
 {
     OrganizeViewBugs(db);
     try
     {
         var item = service.GetResidentItem();
         if (item == null)
         {
             return(this.ErrorHandler(service.ServiceException));
         }
         return(View("Template", item));
     }
     catch (Exception ex)
     {
         return(this.ErrorHandler(ex));
     }
 }