public IActionResult EditState(int id, string filterJson) { ViewBag.filterJson = filterJson; var model = service.getDeliveryItemWithNotification(id); model.DeliveryDateCC = model.DeliveryDate; if (model.DeliveryDateCC == null) { model.DeliveryDateCC = DateTime.Now; } SetViewbagState(model.CaseNotification?.NotificationDeliveryGroupId ?? -1); ModelState.Clear(); int filterType = getFilterTypeFromJson(filterJson); ViewBag.breadcrumbs = commonService.Breadcrumbs_ForDeliveryItemEditReturn(filterType, id).DeleteOrDisableLast(); return(View(nameof(EditState), model)); }