Beispiel #1
0
        /// <summary>
        /// Gets list of regular accounts based on branch
        /// </summary>
        /// <param name="searchBranch">Contains the account in a particular branch.</param>
        /// <returns>Returns the list of Regular Account class objects.</returns>
        public override List <GetRegularAccountsByBranch_Result> GetAccountsByBranchDAL(string searchBranch)
        {
            using (TeamEEntities db = new TeamEEntities())
            {
                List <GetRegularAccountsByBranch_Result> AccountsByBranch = db.GetRegularAccountsByBranch(searchBranch);

                return(AccountsByBranch);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Gets list of regular accounts based on range of dates
        /// </summary>
        /// <param name="startDate">Contains the starting date.</param>
        /// <param name="endDate">Contains the ending date.</param>
        /// <returns>Returns the list of RegularAccount class objects.</returns>
        public override List <GetRegularAccountsByAccountOpeningDate_Result> GetAccountsByAccountOpeningDateDAL(DateTime startDate, DateTime endDate)
        {
            List <RegularAccount> AccountsByDate = new List <RegularAccount>();

            using (TeamEEntities db = new TeamEEntities())
            {
                List <GetRegularAccountsByAccountOpeningDate_Result> AccountsByDate = db.GetRegularAccountsByBranch(searchBranch);

                return(AccountsByDate);
            }
        }