コード例 #1
0
 public IActionResult Edit(ApplicationType obj)
 {
     if (ModelState.IsValid)
     {
         _appTypeRepo.Update(obj);
         _appTypeRepo.Save();
         return(RedirectToAction("Index"));
     }
     return(View(obj));
 }
コード例 #2
0
 public IActionResult Edit(ApplicationType obj)
 {
     if (ModelState.IsValid)
     {
         _appTypeRepo.Update(obj);
         _appTypeRepo.Save();
         return(RedirectToAction("Index"));
     }
     TempData[WebConstants.Success] = "Action Successfull!";
     return(View(obj));
 }
コード例 #3
0
 public IActionResult Edit(ApplicationType obj)
 {
     if (ModelState.IsValid)
     {
         _appTypeRepo.Update(obj);
         _appTypeRepo.Save();
         TempData[WC.Success] = "Action completed successfully";
         return(RedirectToAction("Index"));
     }
     return(View(obj));
 }
コード例 #4
0
 public IActionResult Edit(ApplicationType obj)
 {
     if (ModelState.IsValid)
     {
         _applicationTypeRepository.Update(obj);
         _applicationTypeRepository.Save();
         TempData[WC.Success] = "Application type edited successfully";
         return(RedirectToAction("Index"));
     }
     TempData[WC.Error] = "Error while editing application type";
     return(View(obj));
 }