void SetViewbagChangeLawUnit() { int forCourtId = userContext.CourtId; ViewBag.NewLawUnitType_ddl = service.SelectNewLawUnitType(); var lawUnits = courtLawUnitService.LawUnitForCourt_SelectDDL(NomenclatureConstants.LawUnitTypes.MessageDeliverer, forCourtId, true); ViewBag.NewLawUnitId_ddl = areaService.RemoveSelectAddNoChange(lawUnits); ViewBag.LawUnitId_ddl = service.LawUnitForCourt_SelectDdlAllInDeliveryItem(forCourtId, lawUnits); ViewBag.NewCourtId_ddl = commonService.CourtForDelivery_SelectDDL(-1); ViewBag.NotificationStateId_ddl = nomService.GetDDL_NotificationStateFromDeliveryGroup( NomenclatureConstants.NotificationDeliveryGroup.WithSummons, NomenclatureConstants.NotificationState.Visited ); ViewBag.DeliveryAreaId_ddl = areaService.DeliveryAreaSelectDDL(forCourtId, true); ViewBag.NewDeliveryAreaId_ddl = areaService.RemoveSelectAddNoChange(areaService.DeliveryAreaSelectDDL(forCourtId, false)); }