/// <summary> /// Update row of grid. /// </summary> public ActionResult UpdateGridForShelters([ModelBinder(typeof(DevExpressEditorsBinder))] SheltersModel model) { try { if (ModelState.IsValid) { if (ShelterRepository.IsUniqueShelter(model)) { ShelterRepository.UpdateShelter(model); } else { TempData["ErrorMessage"] = Supervisor.SErrorMsgProductExist; } } else { TempData["ErrorMessage"] = Common.ErrorMsgForGrid; } } catch (Exception exc) { TempData["ErrorMessage"] = exc.ToString(); Logger.LogError(exc, "Error while updating shelter from Supervisor zone"); } return(PartialView("Grid/_GridForShelters", ShelterRepository.Shelters)); }