public CheckBoxModel GetMasterData(BaseViewModel model) { CheckBoxModel DataModel; IUnitOfWork uwork = new UnitOfWork(); IEstimationSpecializedFieldService SpecializedService = new EstimationSpecializedFieldService(new EstimationSpecializedFieldRepository(uwork)); ICurrentStateService CurrentStateService = new CurrentStateService(new CurrentStateRepository(uwork)); IMasterStaffSoftwareSkillService SoftwareService = new MasterStaffSoftwareSkillService(new MasterStaffSoftwareSkillRepository(uwork)); DataModel = new CheckBoxModel(); DataModel.SpecializedFieldList = SpecializedService.GetAllEstimationSpecializedFieldList(model); DataModel.CurrentStateList = CurrentStateService.GetAllCurrentStateList(model); DataModel.SoftwareSkillList = SoftwareService.GetStaffSoftwareSkill(model); return(DataModel); }
public TransproLanguagePriceViewListModel?GetTransproLanguagePriceViewList(BaseViewModel model) { IUnitOfWork uWork = new UnitOfWork(); ILanguageService LangService = new LanguageService(new LanguageRepository(uWork)); IEstimationSpecializedFieldService SpeService = new EstimationSpecializedFieldService(new EstimationSpecializedFieldRepository(uWork)); IEstimationSubSpecializedFieldService SubSpeService = new EstimationSubSpecializedFieldService(new EstimationSubSpecializedFieldRepository(uWork)); ICurrencyService CurService = new CurrencyService(new CurrencyRepository(uWork)); ITransproDeliveryPlanService DelService = new TransproDeliveryPlanService(new TransproDeliveryPlanRepository(uWork)); TransproLanguagePriceViewListModel ViewModel; ViewModel.CurrentUserID = model.CurrentUserID; ViewModel.CurrentCulture = model.CurrentCulture; ViewModel.LanguageList = LangService.GetAllLanguageList(model); ViewModel.SpecializedFieldList = SpeService.GetAllEstimationSpecializedFieldList(model); ViewModel.SubSpecializedFieldList = SubSpeService.GetAllEstimationSubSpecializedFieldList(model); ViewModel.CurrencyList = CurService.GetAllCurrencyList(model); ViewModel.DeliveryPlanList = DelService.GetAllTransproDeliveryType(model); return(ViewModel); }