Esempio n. 1
0
        public IActionResult Edit(int id, string filterJson)
        {
            var model = service.getDeliveryItemOper(id);

            if (filterJson == null)
            {
                var deliveryItem = itemService.getDeliveryItem(model.DeliveryItemId);
                ViewBag.notificationId = deliveryItem.CaseNotificationId;
                ViewBag.breadcrumbs    = commonService.Breadcrumbs_ForCaseNotificationDeliveryOperEdit(deliveryItem.CaseNotificationId ?? 0, 0).DeleteOrDisableLast();
            }
            else
            {
                ViewBag.filterJson = filterJson;
                int filterType = getFilterTypeFromJson(filterJson);
                ViewBag.breadcrumbs = commonService.Breadcrumbs_ForDeliveryItemOperEdit(filterType, id).DeleteOrDisableLast();
            }
            SetViewbag(model.DeliveryOperId);
            ModelState.Clear();
            return(View(nameof(Edit), model));
        }
Esempio n. 2
0
        public IActionResult Edit(int id, string filterJson)
        {
            ViewBag.filterJson = filterJson;
            SetViewbagArea(userContext.CourtId);
            SetViewbag(-1);
            var model = service.getDeliveryItem(id);

            ModelState.Clear();
            int filterType = getFilterTypeFromJson(filterJson);

            ViewBag.breadcrumbs = commonService.Breadcrumbs_ForDeliveryItemEditRaion(filterType, id).DeleteOrDisableLast();
            return(View(nameof(Edit), model));
        }