Beispiel #1
0
        public IActionResult Index(int?deliveryAreaId)
        {
            ViewBag.breadcrumbs = commonService.Breadcrumbs_ForDeliveryAreaAddresses(deliveryAreaId ?? 0).DeleteOrDisableLast();
            var deliveryArea = service.GetById <DeliveryArea>(deliveryAreaId);

            ViewBag.deliveryAreaLabel = "";
            if (deliveryArea != null)
            {
                ViewBag.deliveryAreaLabel = " към район " + deliveryArea.Description;
                var lawUnit = service.GetById <LawUnit>(deliveryArea.LawUnitId);
                if (lawUnit != null)
                {
                    ViewBag.deliveryAreaLabel += "  с призовкар " + lawUnit.FullName;
                }
            }
            ViewBag.ExpiredType_ddl = service.ExpiredTypeDDL();
            var filter = new DeliveryAreaAddressFilterVM()
            {
                DeliveryAreaId = deliveryAreaId ?? 0,
                ExpiredType    = 1
            };

            SetHelpFile(HelpFileValues.Nom3);

            return(View(filter));
        }
Beispiel #2
0
        public IActionResult Index(int?courtId)
        {
            var filter = new DeliveryAreaFilterVM()
            {
                CourtId     = courtId ?? userContext.CourtId,
                ExpiredType = 1
            };

            ViewBag.ExpiredType_ddl = areaAddressService.ExpiredTypeDDL();
            ViewBag.breadcrumbs     = commonService.Breadcrumbs_ForDeliveryAreas().DeleteOrDisableLast();
            return(View(filter));
        }