/// <summary> /// Gets the agent of deduction. /// </summary> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetAgentOfDeduction</exception> public IList <IAgentOfDeduction> GetAgentOFDeduction() { try { using (var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var list = LookupQueries.GetAgentOfDeduction(dbContext).ToList(); return(list); } } catch (Exception e) { throw new ApplicationException("Repository GetAgentOfDeduction", e); } }
/// <summary> /// Gets the tax authority. /// </summary> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetTaxAuthority</exception> public IList <ITaxAuthority> GetTaxAuthority() { try { using (var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var list = LookupQueries.GetTaxAuthority(dbContext).ToList(); return(list); } } catch (Exception e) { throw new ApplicationException("Repository GetTaxAuthority", e); } }
/// <summary> /// Gets the jurisdiction description by value. /// </summary> /// <param name="description">The description.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetJurisdictionDescriptionByValue</exception> public IJurisdiction GetJurisdictionDescriptionByValue(string description) { try { var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext(); { var aRecord = LookupQueries.GetJurisdictionDescriptionByValue(dbContext, description); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetJurisdictionDescriptionByValue", e); } }
/// <summary> /// Gets the income type by jurisdiction. /// </summary> /// <param name="jurisdictionId">The jurisdiction identifier.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetIncomeTypeByJurisdiction</exception> public IEnumerable <IJurisdictionIncomeType> GetIncomeTypeByJurisdiction(int jurisdictionId) { try { var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext(); { var aRecord = LookupQueries.GetIncomeTypeByJurisdiction(dbContext, jurisdictionId); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetIncomeTypeByJurisdiction", e); } }
public IInlandRevenue GetInlandRevenueNameByValue(string inlandRevenueName) { try { var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext(); { var aRecord = LookupQueries.getInlandRevenueNameByValue(dbContext, inlandRevenueName); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetInlandRevenueNameByValue", e); } }
/// <summary> /// Gets the inland revenue. /// </summary> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetInlandRevenue</exception> public IList <IInlandRevenue> GetInlandRevenue() { try { using (var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var list = LookupQueries.getInlandRevenue(dbContext).ToList(); return(list); } } catch (Exception e) { throw new ApplicationException("Repository GetInlandRevenue", e); } }
/// <summary> /// Gets the tax return file. /// </summary> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetDigitalFileType</exception> public IDigitalFile GetTaxReturnFile() { try { using (var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var list = LookupQueries.GetTaxReturnFile(dbContext); return(list); } } catch (Exception e) { throw new ApplicationException("Repository GetTaxReturnFile", e); } }
/// <summary> /// Gets the jurisdiction by branch identifier. /// </summary> /// <param name="Id">The identifier.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetJurisdictionById</exception> public IBranchJurisdiction GetJurisdictionByBranchId(int Id) { try { using ( var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var aRecord = LookupQueries.GetJurisdictionByBranchId(dbContext, Id); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetJurisdictionById", e); } }
/// <summary> /// Gets the tax authority. /// </summary> /// <param name="revenueId">The revenue identifier.</param> /// <param name="jurisdictionId">The jurisdiction identifier.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetUserRoleActionsById</exception> public IList <ITaxAuthority> GetTaxAuthority(int revenueId, int jurisdictionId) { try { using ( var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext()) { var list = LookupQueries.GetTaxAuthorityInfo(dbContext, revenueId, jurisdictionId).ToList(); return(list); } } catch (Exception e) { throw new ApplicationException("Repository GetUserRoleActionsById", e); } }
/// <summary> /// Gets the digital file detail. /// </summary> /// <param name="digitalFileId">The digital file identifier.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetDigitalFileDetail</exception> public IDigitalFile GetDigitalFileDetail(int digitalFileId) { try { using ( var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var aRecord = LookupQueries.GetDigitalFileDetail(dbContext, digitalFileId); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetDigitalFileDetail", e); } }
/// <summary> /// Gets the income type by branch identifier. /// </summary> /// <param name="Id">The identifier.</param> /// <returns></returns> /// <exception cref="System.ApplicationException">Repository GetIncomeTypeById</exception> public IEnumerable <IIncomeType> GetIncomeTypeByBranchId(int Id) { try { using ( var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var aRecord = LookupQueries.GetIncomeTypeByBranchId(dbContext, Id).ToList(); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetIncomeTypeByBrranchId", e); } }
public IInlandRevenue GetInlandRevenueById(int Id) { try { using ( var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext()) { var aRecord = LookupQueries.GetInlandRevenueById(dbContext, Id); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetInlandRevenueById", e); } }