Пример #1
0
 public ActionResult Edit(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add update logic here
         var model = UserActionLog.GetById(id);
         TryUpdateModel(model);
         model.SaveOrUpDate();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Пример #2
0
 // GET: UserActionLog/Edit/5
 public ActionResult Edit(int id)
 {
     return(View(UserActionLog.GetById(id)));
 }
Пример #3
0
 // GET: UserActionLog/Details/5
 public ActionResult Details(int id)
 {
     return(View(UserActionLog.GetById(id)));
 }