{/// <summary>
     /// Method for retrieving the list
     /// </summary>
     /// <param name="source">IDataManipulation interface</param>
     /// <param name="displayPath">Path for display in combo box</param>
     /// <param name="valuePath">Path for getting the value from in combo box</param>
     /// <param name="selected">Id of the selected item</param>
     /// <returns></returns>
        public SelectList GetList(IDataManipulation source, string valuePath, string displayPath, int selected = -1)
        {
            var all = source.GetAll().Result;
            //Func<SelectList> deleg = () => {
            //    SelectList res = selected == -1 ? new SelectList(all, displayPath, valuePath) : new SelectList(all, displayPath, valuePath, selected);
            //    return res;
            //};
            // var t1 = new Task<SelectList>(deleg);
            SelectList res = selected == -1 ? new SelectList(all, valuePath, displayPath) : new SelectList(all, valuePath, displayPath, selected);

            return(res);
        }
 public CustomerAccProfileController()
 {
     _ICustomerAccProfileService = new CustomerAccProfileService();
     _IDataManipulation          = new DataManipulation();
 }
Esempio n. 3
0
 public TransactionTemplateController()
 {
     _ITransactionTemplateService = new TransactionTemplateService();
     _IDataManipulation           = new DataManipulation();
 }
Esempio n. 4
0
 public AccCategoryController()
 {
     _IAccCategoryService = new AccCategoryService();
     _IDataManipulation   = new DataManipulation();
 }
 public ManagerCategoryController()
 {
     _IManagerCategoryService = new ManagerCategoryService();
     _IDataManipulation       = new DataManipulation();
 }
Esempio n. 6
0
 public CityInfoController()
 {
     _ICityInfoService  = new CityInfoService();
     _IDataManipulation = new DataManipulation();
 }
Esempio n. 7
0
 public LedgerController()
 {
     _IChannelLedgerService = new LedgerService();
     _IDataManipulation     = new DataManipulation();
 }
 public AccTypeController()
 {
     _IAccTypeService   = new AccTypeService();
     _IDataManipulation = new DataManipulation();
 }
 public ManagerTypeController()
 {
     _IManagerTypeService = new ManagerTypeService();
     _IDataManipulation   = new DataManipulation();
 }
 public AccMasterController()
 {
     _IAccInfoService   = new AccMasterService();
     _IDataManipulation = new DataManipulation();
 }
Esempio n. 11
0
 public FundTransferController()
 {
     _IFundTransferService = new FundTransferService();
     _IDataManipulation    = new DataManipulation();
 }
 public ChannelAccProfileController()
 {
     _IChannelAccProfileService = new ChannelAccProfileService();
     _IDataManipulation         = new DataManipulation();
 }
Esempio n. 13
0
 public CusTypeController()
 {
     _ICusTypeService   = new CusTypeService();
     _IDataManipulation = new DataManipulation();
 }
Esempio n. 14
0
 public DepartmentController()
 {
     _IDepartmentService = new DepartmentService();
     _IDataManipulation  = new DataManipulation();
 }
 public ReportConfigMasterController()
 {
     _IReportConfigarationService = new ReportConfigarationService();
     _IDataManipulation           = new DataManipulation();
 }
 public CommissionSetupController()
 {
     _ICommissionInfoService = new CommissionInfoService();
     _IDataManipulation      = new DataManipulation();
 }
 public BranchInfoController()
 {
     _IBranchInfoService = new BranchInfoService();
     _IDataManipulation  = new DataManipulation();
 }
Esempio n. 18
0
 public ChargeRateMethodController()
 {
     _IChargeRateMethodService = new ChargeRateMethodService();
     _IDataManipulation        = new DataManipulation();
 }
 public FileUploadController()
 {
     _IFile_UploadService = new FileUploadService();
     _IDataManipulation   = new DataManipulation();
 }
 public TransactionRulesController()
 {
     _ITransactionRulesService = new TransactionRulesService();
     _IDataManipulation        = new DataManipulation();
 }
 public ChargeActTypeController()
 {
     _IChargeActTypeService = new ChargeActTypeService();
     _IDataManipulation     = new DataManipulation();
 }
Esempio n. 22
0
 public EODController()
 {
     _IEODService       = new EODService();
     _IDataManipulation = new DataManipulation();
 }
 public USBReportingFieldController()
 {
     _IUSBReportingFieldService = new USBReportingFieldService();
     _IDataManipulation         = new DataManipulation();
 }
Esempio n. 24
0
 public MenuController()
 {
     _IDataManipulation = new DataManipulation();
 }
Esempio n. 25
0
 public DesignationController()
 {
     _IDesignationService = new DesignationService();
     _IDataManipulation   = new DataManipulation();
 }
Esempio n. 26
0
 public PSInfoController()
 {
     _IPSInfoService    = new PSInfoService();
     _IDataManipulation = new DataManipulation();
 }
Esempio n. 27
0
 public CashInController()
 {
     _ICashInService    = new CashInService();
     _IDataManipulation = new DataManipulation();
 }
 public UserActivityLogController()
 {
     _IUserActivityLogService = new UserActivityLogService();
     _IDataManipulation       = new DataManipulation();
 }
Esempio n. 29
0
 public DistrictInfoController()
 {
     _IDistrictInfoService = new DistrictInfoService();
     _IDataManipulation    = new DataManipulation();
 }
Esempio n. 30
0
 public ReportController()
 {
     _IReportService    = new ReportService();
     _IDataManipulation = new DataManipulation();
 }