Exemplo n.º 1
0
        /// <summary>
        /// Passes Data from controller to DAC to Get Users depending Upon Request Type
        /// </summary>
        /// <param name="requestType"></param>
        /// <returns></returns>
        public IList <UserDTO> GetUsersBAL(int requestType)
        {
            IList <UserDTO> users = new List <UserDTO>();

            if (requestType == 0)
            {
                users = userDAC.GetPendingUsersDAL();
            }

            if (requestType == 1)
            {
                users = userDAC.GetDeclinedUsersDAL();
            }

            if (requestType == 2)
            {
                users = userDAC.GetApprovedUsersDAL();
            }
            return(users);
        }