コード例 #1
0
 public IActionResult Edit(RolesViewModel entity)
 {
     try
     {
         if (_IRoles.Commit(entity.dbModel, 1) > 0)
         {
             TempData["MessageRegistration"] = "Role updated successfully!";
             //return View(entity.dbModel);
             return(RedirectToAction("Index"));
         }
         else
         {
             return(RedirectToAction("Index"));
         }
     }
     catch (System.Exception)
     {
         throw;
     }
 }