Esempio n. 1
0
 public ActionResult Single(int id)
 {
     try
     {
         List <SelectListItem> userList;
         var model = UserStorageService.GetFileViewByID(id, out userList);
         ViewBag.UserList = userList;
         return(View(model));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Index", "Response", new { Message = ex.Message, Code = 400, Type = "Error" }));
     }
 }