public IActionResult Edit(ApplicationType obj) { if (ModelState.IsValid) { _appTypeRepo.Update(obj); _appTypeRepo.Save(); return(RedirectToAction("Index")); } return(View(obj)); }
public IActionResult Edit(ApplicationType obj) { if (ModelState.IsValid) { _appTypeRepo.Update(obj); _appTypeRepo.Save(); return(RedirectToAction("Index")); } TempData[WebConstants.Success] = "Action Successfull!"; return(View(obj)); }
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)); }
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)); }