Example #1
0
 public BaseApiController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo, IFeeScheduleService ifrepo)
 {
     _strepo = strepo;
     _ctrepo = ctrepo;
     _adrepo = adrepo;
     _ifrepo = ifrepo;
 }
 public void Dispose()
 {
     if (channel != null)
     {
         channel.Dispose();
         channel = null;
     }
 }
Example #3
0
 public AccountClient(IAccountRepository accountRepository, IAccountEntityService accountEntityService,
                      ICompanyEntityService companyEntityService, IEmployeeEntityService employeeEntityService,
                      IAddressService addressService, IFeeScheduleService feeScheduleService)
 {
     _accountRepository     = accountRepository;
     _accountEntityService  = accountEntityService;
     _companyEntityService  = companyEntityService;
     _employeeEntityService = employeeEntityService;
     _addressService        = addressService;
     _feeScheduleService    = feeScheduleService;
 }
        public List <FeeSchedule> GetFeeSchedules(Account account)
        {
            IFeeScheduleService fs_service = _service_factor.CreateClient <IFeeScheduleService>();

            using (fs_service)
            {
                try
                {
                    var fs_list = fs_service.GetFeeSchedulesByAccountAsync(account);
                    return(new List <FeeSchedule>(fs_list.Result));
                }
                catch
                {
                    return(new List <FeeSchedule>());
                }
            }
        }
 public FeeScheduleClient(EndpointConfiguration endpoint)
 {
     channel = new ChannelFactory <IFeeScheduleService>(GetBindingForEndpoint(EndpointConfigurationType.NetTcpBinding),
                                                        GetEndpointAddress(endpoint)).CreateChannel();
 }
Example #6
0
 public FeeScheduleClient(string endpoint)
 {
     channel = new ChannelFactory <IFeeScheduleService>(endpoint).CreateChannel();
 }
Example #7
0
 public ScholarshipController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo,
                              IFeeScheduleService ifrepo, IFeeScheduleDtlService ifsdrepo, IScholarshipService ischrepo, IScholarshipdtlService ischdrepo) : base(strepo, ctrepo, adrepo, ifrepo)
 {
     _ischrepo  = ischrepo;
     _ischdrepo = ischdrepo;
 }
Example #8
0
 public FeeScheduleController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo, IFeeScheduleService ifrepo)
     : base(strepo, ctrepo, adrepo, ifrepo)
 {
 }
Example #9
0
 public InvoiceController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo, IFeeScheduleService ifrepo,
                          IFeeScheduleDtlService ifsdrepo, IInvoiceService iinvsrepo)
     : base(strepo, ctrepo, adrepo, ifrepo)
 {
     _ifsdrepo  = ifsdrepo;
     _iinvsrepo = iinvsrepo;
 }
Example #10
0
 public SessionTermController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo, IFeeScheduleService ifrepo,
                              ISessionService issrepo, SessionDTLService isdrepo)
     : base(strepo, ctrepo, adrepo, ifrepo)
 {
     _issrepo = issrepo;
     _isdrepo = isdrepo;
 }
Example #11
0
 public InventoryController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo, IFeeScheduleService ifrepo,
                            IInventoryService irepo, ILedgerCOAService ilcrepo)
     : base(strepo, ctrepo, adrepo, ifrepo)
 {
     _irepo   = irepo;
     _ilcrepo = ilcrepo;
 }
Example #12
0
 public SystemController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo,
                         IFeeScheduleService ifrepo, IFeeScheduleDtlService fsdrepo) : base(strepo, ctrepo, adrepo, ifrepo)
 {
     //_fsdrepo = fsdrepo;
 }