public ActionResult Add([ModelBinder(typeof(DevExpressEditorsBinder))] LayoutModel layoutModel) { var _HiddenUid = Request["_HiddenUid"]; layoutModel._HiddenUid = _HiddenUid; layoutModel._UserId = (int)Session["userId"]; layoutService = new LayoutService(); if (ModelState.IsValid) { if (layoutModel._HiddenUid != "") { layoutModel.Data = System.IO.File.ReadAllBytes(LayoutUploadControlHelper.GetFilePath(layoutModel._HiddenUid)); } layoutService.Add(layoutModel); layoutModel = layoutService.GetNewModel(); } else { string message = GetErrorModel(); throw new Exception(string.Format("[VALIDATION] {0}", message)); } layoutModel._FormMode = Models.FormModeEnum.New; return(PartialView(VIEW_FORM_PARTIAL, layoutModel)); }
/// <summary> /// Initializes a new instance of the <see cref="CityController" /> class. /// </summary> /// <param name="configuration">Configuration</param> /// <param name="hostingEnvironment">HOsting Enviorment</param> /// <param name="mapper">The mapper.</param> /// <param name="city">The country.</param> /// <param name="masterService">The master service.</param> public CityController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMapper mapper, ICityService city, IMasterService masterService) : base(mapper, configuration) { this.hostingEnvironment = hostingEnvironment; this.city = city; this.masterService = masterService; }
/// <summary> /// Constructor method for MasterDataController /// </summary> /// <param name="masterService"></param> /// <param name="appSettings"></param> /// <param name="httpContextAccessor"></param> public MasterDataController(IMasterService masterService, IOptions <AppSettings> appSettings, IHttpContextAccessor httpContextAccessor) { _masterService = masterService; _appSettings = appSettings; _httpContextAccessor = httpContextAccessor; }
/// <summary> /// Initializes a new instance of the <see cref="CountryController" /> class. /// </summary> /// <param name="configuration">Config</param> /// <param name="hostingEnviorment">Hosting Enviorment</param> /// <param name="mapper">The mapper.</param> /// <param name="country">The country.</param> /// <param name="masterService">The master service.</param> public CountryController(IConfiguration configuration, IHostingEnvironment hostingEnviorment, IMapper mapper, ICountryService country, IMasterService masterService) : base(mapper, configuration) { this.hostingEnviorment = hostingEnviorment; this.country = country; this.masterService = masterService; }
public UserRightsController() { _MenuRights = new MenuItemRightsUService(); _masterService = new MasterService(); _SalryProCond = new SalaryprocCondService(); }
public AudioEditWindow(List<AudioUoW> audios, IMasterService ms) { _ms = ms; _audios = audios; InitializeComponent(); Setup(); }
/// <summary> /// Initializes a new instance of the <see cref="VisaController" /> class. /// </summary> /// <param name="dealsServices">Deal Service</param> /// <param name="configuration">Config</param> /// <param name="visaServices">visa Service</param> /// <param name="mapper">mapper</param> /// <param name="masterService">master service</param> public VisaController(IDealService dealsServices, IConfiguration configuration, IMasterService masterService, IVisaService visaServices, IMapper mapper) : base(mapper, configuration) { this.dealsServices = dealsServices; this.masterService = masterService; this.visaServices = visaServices; }
public MasterDataUnitTests() { builder = new ContainerBuilder(); builder.RegisterModule <AutofacModule>(); IEnumerable <Crop> cropList = new List <Crop>() { new Crop { CropCode = "CC", CropName = "Cauliflower" }, new Crop { CropCode = "TO", CropName = "Tomato" } }; IEnumerable <BreedingStation> breedingStationList = new List <BreedingStation>() { new BreedingStation { BreedingStationCode = "NL", BreedingStationName = "Netherlands" }, new BreedingStation { BreedingStationCode = "NP", BreedingStationName = "Nepal" }, }; var masterdatarepo = A.Fake <IMasterRepository>(); A.CallTo(() => masterdatarepo.GetCropAsync()).Returns(cropList); A.CallTo(() => masterdatarepo.GetBreedingStationAsync()).Returns(breedingStationList); builder.RegisterInstance(masterdatarepo).As <IMasterRepository>().SingleInstance(); var container = builder.Build(); _masterService = container.Resolve <IMasterService>(); }
/// <summary> /// Initializes a new instance of the <see cref="BookingController" /> class. /// </summary> /// <param name="hostingEnvironment">Hosting Enviorment</param> /// <param name="masterService">Master Service</param> /// <param name="mapper">The mapper.</param> /// <param name="bookingService">Booking Service</param> /// <param name="configuration">Configuration</param> public BookingController(IHostingEnvironment hostingEnvironment, IMasterService masterService, IMapper mapper, IBookingService bookingService, IConfiguration configuration) : base(mapper, configuration) { this.hostingEnvironment = hostingEnvironment; this.masterService = masterService; this.bookingService = bookingService; }
/// <summary> /// Initializes a new instance of the <see cref="CurationController" /> class. /// </summary> /// <param name="configuration">Configuration</param> /// <param name="hostingEnvironment">Hosting Enviorment</param> /// <param name="masterService">Master Service</param> /// <param name="mapper">The mapper.</param> /// <param name="curationService">Curation Service</param> public CurationController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMasterService masterService, IMapper mapper, ICurationsService curationService) : base(mapper, configuration) { this.hostingEnvironment = hostingEnvironment; this.masterService = masterService; this.curationService = curationService; }
/// <summary> /// Initializes a new instance of the <see cref="HomeBannersController" /> class. /// </summary> /// <param name="configuration">Configuration</param> /// <param name="masterService">Master Service</param> /// <param name="mapper">The mapper.</param> /// <param name="hostingEnvironment">The hosting environment.</param> /// <param name="homeBanner">The home banner.</param> public HomeBannersController(IConfiguration configuration, IMasterService masterService, IMapper mapper, IHostingEnvironment hostingEnvironment, IHomeBannerService homeBanner) : base(mapper, configuration) { this.masterService = masterService; this.hostingEnvironment = hostingEnvironment; this.homeBanner = homeBanner; }
public ActionResult DetailPartial(int Id = 0) { UserModel userModel; userService = new UserService(); if (Id == 0) { userModel = userService.GetNewModel(); userModel._FormMode = FormModeEnum.New; } else { userModel = userService.GetById(Id); if (userModel != null) { userModel._FormMode = FormModeEnum.Edit; } else { throw new Exception("[VALIDATION]-Data not exists"); } } return(PartialView(VIEW_FORM_PARTIAL, userModel)); }
public AccountController(IFormsAuthenticationService formsService, IMembershipService membershipService, IUserService userService, IMasterService masterService) { this.formsService = formsService; this.membershipService = membershipService; this.userService = userService; this.masterService = masterService; }
public TrendModel() { masterService = new MasterService(); this.Exchange = masterService.GetDropDownData(new DropDownRequest { Identifier = DropDownIdentifier.EXCHANGE }); this.Symbols = masterService.GetDropDownData(new DropDownRequest { Identifier = DropDownIdentifier.SYMBOL, Exchange = selectedExchange }); }
public ActionResult DetailPartial(int Id = 0) { LayoutModel layoutModel; layoutService = new LayoutService(); if (Id == 0) { layoutModel = layoutService.GetNewModel(); layoutModel._FormMode = FormModeEnum.New; } else { layoutModel = layoutService.GetById(Id); if (layoutModel != null) { layoutModel._FormMode = FormModeEnum.Edit; } else { throw new Exception("[VALIDATION]-Data not exists"); } } return(PartialView(VIEW_FORM_PARTIAL, layoutModel)); }
public ActionResult DetailPartial(int Id = 0) { RoleModel roleModel; roleService = new RoleService(); if (Id == 0) { roleModel = roleService.GetNewModel(); roleModel._FormMode = FormModeEnum.New; } else { roleModel = roleService.GetById(Id); if (roleModel != null) { roleModel._FormMode = FormModeEnum.Edit; } else { throw new Exception("[VALIDATION]-Data not exists"); } } return(PartialView("Partial/Role_Form_Partial", roleModel)); }
public ActionResult Add([ModelBinder(typeof(DevExpressEditorsBinder))] RoleModel roleModel) { roleModel._UserId = (int)Session["userId"]; roleService = new RoleService(); fillCheckValue(roleModel); if (ModelState.IsValid) { roleService.Add(roleModel); roleModel = roleService.GetNewModel(); } else { string message = GetErrorModel(); throw new Exception(string.Format("[VALIDATION] {0}", message)); } roleModel._FormMode = Models.FormModeEnum.New; return(PartialView(VIEW_FORM_PARTIAL, roleModel)); }
/// <summary> /// Initializes a new instance of the <see cref="SearchPageController" /> class. /// </summary> /// <param name="configuration">Configuration</param> /// <param name="masterService">Master Service</param> /// <param name="homePageService">Home Page Service</param> /// <param name="hostingEnvironment">Hosting Enviorment</param> /// <param name="mapper">The mapper.</param> public SearchPageController(IConfiguration configuration, IMasterService masterService, IHomePageService homePageService, IHostingEnvironment hostingEnvironment, IMapper mapper) : base(mapper, configuration) { this.masterService = masterService; this.homePageService = homePageService; this.hostingEnvironment = hostingEnvironment; }
/// <summary> /// Initializes a new instance of the <see cref="StateController" /> class. /// </summary> /// <param name="configuration">Config</param> /// <param name="hostingEnvironment">Hosting Enviorment</param> /// <param name="mapper">The mapper.</param> /// <param name="state">The country.</param> /// <param name="masterService">The master service.</param> public StateController(IConfiguration configuration, IHostingEnvironment hostingEnvironment, IMapper mapper, IStateService state, IMasterService masterService) : base(mapper, configuration) { this.hostingEnvironment = hostingEnvironment; this.state = state; this.masterService = masterService; }
public AuthController(IAuthService authService, IJWTSettings jwtSettings, IAccountService accountService, IMasterService masterService) { _authService = authService; _jwtSettings = jwtSettings; _accountService = accountService; _masterService = masterService; }
public AudioEditWindow(List <AudioUoW> audios, IMasterService ms) { _ms = ms; _audios = audios; InitializeComponent(); Setup(); }
public EnrollmentService(IUnitOfWork <SchoolDBContext> unitOfWork, IAppUserService appUserService, IMasterService _masterService) { _unitOfWork = unitOfWork; _appUserService = appUserService; this._masterService = _masterService; }
public RDTController(IRDTService rdtService, IFileService fileService, ITestService testService, IMasterService masterService) { this._rdtService = rdtService; _fileService = fileService; _testService = testService; _masterService = masterService; }
public EnrollmentsController(IUnitOfWork <SchoolDBContext> unitOfWork, IMasterService masterService, IEnrollmentService enrollmentService) { _unitOfWork = unitOfWork; _masterService = masterService; _enrollmentService = enrollmentService; }
public FileAttachmentService(IConfiguration config, IMasterService masterService, IParameterRepository paramRepo) { _config = config; _masterService = masterService; _paramRepo = paramRepo; }
public AccountController(IOrderService orderService, IContactService contactService, IMasterService masterService , IRegistrationService registrationService) { _orderService = orderService; _contactService = contactService; _masterService = masterService; _registrationService = registrationService; }
public GradesController(SchoolDBContext schoolDBContext, IMasterService masterService, IGradeService gradeService) { _schoolDBContext = schoolDBContext; _masterService = masterService; _gradeService = gradeService; }
public MasterController(IMasterService masterService, IInvoiceService invoiceService, IDocumentService documentService) { _masterService = masterService; _invoiceService = invoiceService; _documentService = documentService; }
public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService, IProductManagementService productManagementService, IMasterService masterService) { _serializationProvider = serializationProvider; _controlService = controlService; _productManagementService = productManagementService; _masterService = masterService; }
public FileController(IUserService userService, IUserDealerMapService userDealerMapServiceService, IMasterService masterService, IRetailService retailService) { this._userService = userService; _userDealerMapServiceService = userDealerMapServiceService; _masterService = masterService; _retailService = retailService; }
public YearService(IUnitOfWork <SchoolDBContext> unitOfWork, IAppUserService appUserService, IMasterService masterService) { _unitOfWork = unitOfWork; _appUserService = appUserService; _masterService = masterService; }
public SemestersController(SchoolDBContext schoolDBContext, IMasterService masterService, ISemesterService semesterService) { _schoolDBContext = schoolDBContext; _masterService = masterService; _semesterService = semesterService; }
public RepairController(IRepairService repairService, IHistoryStatusService historyStatusService, IRepairStatusService repairStatusService, IOwnerService ownerService, IMasterService masterService) { _repairService = repairService; _historyStatusService = historyStatusService; _repairStatusService = repairStatusService; _ownerService = ownerService; _masterService = masterService; }
public IncentiveController(IMasterService masterService, IIncentiveService incentiveService, IDealerManpowerService manpowerService) { this.masterService = masterService; this.incentiveService = incentiveService; this.manpowerService = manpowerService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public CompanyService(ICompanyRepository companyRepositry, IUserRepository userRepository, IMasterRepository masterRepository, IMasterService masterService, IUserService userService, ILogger <CompanyService> logger) : base(companyRepositry) { this.companyRepositry = companyRepositry; this.userRepository = userRepository; this.masterRepository = masterRepository; this.masterService = masterService; this.userService = userService; this.logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="CancellationPolicyController" /> class. /// </summary> /// <param name="configuration">Configuration</param> /// <param name="cancellationService">Cancellation Service</param> /// <param name="hostingEnvironment">Hosting Enviorment</param> /// <param name="mapper">The mapper.</param> /// <param name="hotel">Type of the hoteroom.</param> /// <param name="masterService">The master service.</param> /// <param name="vendorService">Vendor Service</param> public CancellationPolicyController(IConfiguration configuration, ICancellationService cancellationService, IHostingEnvironment hostingEnvironment, IMapper mapper, IHotelierService hotel, IMasterService masterService, IVendorService vendorService) : base(mapper, configuration) { this.cancellationService = cancellationService; this.hostingEnvironment = hostingEnvironment; this.vendorService = vendorService; this.hotelierServices = hotel; this.masterService = masterService; }
public MasterController(IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IDealerManpowerService dealerManpowerService, IUserService userService, IUserDealerMapService userDealerMapService) { this.masterService = masterService; this.competencyProfileMapService = competencyProfileMapService; this.trainingProfileMapService = trainingProfileMapService; this.dealerManpowerService = dealerManpowerService; this.userService = userService; this.userDealerMapService = userDealerMapService; }
public HomeController(IMasterService masterService, IUserService userService, IUserDealerMapService userDealerMapService) { this.masterService = masterService; this.userService = userService; this.userDealerMapService = userDealerMapService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService, IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService) { _serializationProvider = serializationProvider; _controlService = controlService; _productManagementService = productManagementService; _masterService = masterService; _activationLogService = activationLogService; _keyManagementService = keyManagementService; }
public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService) { this.userService = userService; this.userDealerMapService = userDealerMapService; this.manpowerTargetService = manpowerTargetService; this.manpowerService = manpowerService; this.masterService = masterService; this.targetService = targetService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService, IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider, IActivationLogService activationLogService, IMasterService masterService) { _controlService = controlService; _keyService = keyService; _keyPairService = keyPairService; _serializationProvider = serializationProvider; _asymmetricEncryptionProvider = asymmetricEncryptionProvider; _activationLogService = activationLogService; _masterService = masterService; }
public AppointmentService(IPatientVisitAppointmentDocument patientVisitAppointmentDocument, IBlockAppointmentDocument blockAppointmentDocument, IOtherAppointmentDocument otherAppointmentDocument, IRecurrenceGroupDocument recurrenceDocument, IPatientDocument patientDocument, IAppointmentDocument appointmentDocument, IMasterService masterService) { _blockAppointmentDocument = blockAppointmentDocument; _otherAppointmentDocument = otherAppointmentDocument; _patientVisitAppointmentDocument = patientVisitAppointmentDocument; _recurrenceDocument = recurrenceDocument; _patientDocument = patientDocument; _appointmentDocument = appointmentDocument; _masterService = masterService; }
public ReportController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService, IUserRegionStateService regionStateService) { _manpowerService = manpowerService; _userService = userService; _profileService = profileService; _masterService = masterService; _competencyProfileMapService = competencyProfileMapService; _trainingProfileMapService = trainingProfileMapService; _manpowerTargetService = manpowerTargetService; _userDealerMapServiceService = userDealerMapServiceService; _targetService = targetService; _dealerManpowerService = dealerManpowerService; _regionStateService = regionStateService; }
public MainWindow(IVideoManagementService vms, IVideoNetworkService vns, IStorageService ss, IMasterService ms, IAudioNetworkService ans, IAudioManagementService ams, ISocialMediaService sms) { _vms = vms; _vns = vns; _ss = ss; _ms = ms; _ans = ans; _ams = ams; _sms = sms; InitializeComponent(); SetFolderDefaults(); CheckCredentials(); }
public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService, IProfileService profileService, ICompetencyProfileMapService competencyProfileMapService) { _userService = userService; _userDealerMapService = userDealerMapService; _manpowerTargetService = manpowerTargetService; _manpowerService = manpowerService; _masterService = masterService; _targetService = targetService; _profileService = profileService; _competencyProfileMapService = competencyProfileMapService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public ValidationController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService) { this.manpowerService = manpowerService; this.userService = userService; this.profileService = profileService; this.masterService = masterService; this.competencyProfileMapService = competencyProfileMapService; this.trainingProfileMapService = trainingProfileMapService; this.attritionProfileMapService = attritionProfileMapService; this.manpowerTargetService = manpowerTargetService; this.userDealerMapServiceService = userDealerMapServiceService; this.targetService = targetService; this.salaryService = salaryService; this.dealerManpowerService = dealerManpowerService; this.dsmDseTargetMapService = dsmDseTargetMapService; }
public DealerController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService) { this.manpowerService = manpowerService; this.userService = userService; this.profileService = profileService; this.masterService = masterService; this.competencyProfileMapService = competencyProfileMapService; this.trainingProfileMapService = trainingProfileMapService; this.attritionProfileMapService = attritionProfileMapService; this.manpowerTargetService = manpowerTargetService; this.userDealerMapServiceService = userDealerMapServiceService; this.targetService = targetService; this.salaryService = salaryService; this.dealerManpowerService = dealerManpowerService; this.dsmDseTargetMapService = dsmDseTargetMapService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public PatientController(IPatientService patientService, IMasterService masterService) { _patientService = patientService; _masterService = masterService; }
/// <summary> /// Assigns the master service. /// </summary> /// <param name="linkType">Type of the link.</param> private void AssignMasterService(string linkType) { switch (linkType.ToLower()) { case Client: this.masterService = DIContainer.Instance.Resolve<ClientService>(); break; case Designation: this.masterService = DIContainer.Instance.Resolve<DesignationService>(); break; case EstimationCategory: this.masterService = DIContainer.Instance.Resolve<EstimationCategoryService>(); break; case RoleGroup: this.masterService = DIContainer.Instance.Resolve<RoleGroupService>(); break; case Role: this.masterService = DIContainer.Instance.Resolve<RoleService>(); break; case WorkCategoryGroup: this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>(); break; case WorkCategory: this.masterService = DIContainer.Instance.Resolve<WorkCategoryService>(); break; } }
/// <summary> /// Initializes the work category group. /// </summary> /// <param name="presenter">The presenter.</param> private void InitializeWorkCategoryGroup(MasterPresenter presenter) { this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>(); presenter.AssignWorkCategoryGroup(this.masterService.RetrieveList(SessionData.Instance.UserInfo.Developer.DeveloperID)); }
public SoundCloudAudioNetworkService(IStorageService ss, IAPIKeyService aks, IMasterService ms) { _ss = ss; _aks = aks; _ms = ms; }
/// <summary> /// Initializes the master details. /// </summary> /// <param name="linkType">Type of the link.</param> /// <param name="presenter">The presenter.</param> private void InitializeMasterDetails(string linkType, MasterPresenter presenter) { switch (linkType.ToLower()) { case Client: this.AddBreadcrumbItem(Resources.ManageClients, Url.MasterAction()); this.masterService = DIContainer.Instance.Resolve<ClientService>(); presenter.InactiveApplicable = true; break; case Designation: this.AddBreadcrumbItem(Resources.ManageDesignations, Url.MasterAction()); this.masterService = DIContainer.Instance.Resolve<DesignationService>(); break; case EstimationCategory: this.AddBreadcrumbItem(Resources.ManageEstimationCategories, Url.MasterAction()); this.InitializeRoleGroup(presenter); this.masterService = DIContainer.Instance.Resolve<EstimationCategoryService>(); presenter.IsRoleGroup = true; break; case RoleGroup: this.AddBreadcrumbItem(Resources.ManageRoleGroups, Url.MasterAction()); this.masterService = DIContainer.Instance.Resolve<RoleGroupService>(); break; case Role: this.AddBreadcrumbItem(Resources.ManageRoles, Url.MasterAction()); this.InitializeRoleGroup(presenter); this.masterService = DIContainer.Instance.Resolve<RoleService>(); presenter.GroupApplicable = true; presenter.IsRoleGroup = true; break; case WorkCategoryGroup: this.AddBreadcrumbItem(Resources.ManageWorkCategoryGroup, Url.MasterAction()); this.masterService = DIContainer.Instance.Resolve<WorkCategoryGroupService>(); break; case WorkCategory: this.AddBreadcrumbItem(Resources.ManageWorkCategory, Url.MasterAction()); this.InitializeWorkCategoryGroup(presenter); this.masterService = DIContainer.Instance.Resolve<WorkCategoryService>(); presenter.GroupApplicable = true; break; } }