public IActionResult EditPost(DeliveryItem model, string filterJson) { ViewBag.filterJson = filterJson; int filterType = getFilterTypeFromJson(filterJson); ViewBag.breadcrumbs = commonService.Breadcrumbs_ForDeliveryItemEditRaion(filterType, model.Id).DeleteOrDisableLast(); SetViewbagArea(userContext.CourtId); SetViewbag(-1); var currentId = model.Id; if (service.DeliveryItemSaveArea(model.Id, model.CourtId, model.DeliveryAreaId, model.LawUnitId)) { this.SaveLogOperation(currentId == 0, model.Id); SetSuccessMessage(MessageConstant.Values.SaveOK); return(RedirectToAction(nameof(Edit), new { id = model.Id, filterJson })); } else { SetErrorMessage(MessageConstant.Values.SaveFailed); } return(View(nameof(Edit), model)); }