public IEnumerable<vw_Account> Get(int? pageNo, int? pageSize, string userRole, string roleEntityValue = "", string firstOrLastName = "", string accountNumber = "", string creditorName = "", string accountOriginal = "", string phone = "")
        {
            IEnumerable<vw_Account> accounts = null;

            try
            {
                DataQueries query = new DataQueries();
                accounts = query.GetAccounts(firstOrLastName, accountNumber, creditorName, accountOriginal, roleEntityValue, phone, pageNo, pageSize, (UserRole)Enum.Parse(typeof(UserRole), userRole));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return accounts;
        }
        public IEnumerable<vwAccount> Get(string nameSearch)
        {
            DataQueries query = new DataQueries();
            IEnumerable<vwAccount> accounts = null;
            try
            {
                accounts = query.GetAccounts(nameSearch);
            }
            catch (Exception ex)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)
                {
                    Content = new StringContent(string.Format("Error occur in GetAccount : {0}", ex.Message))
                });

            }
            return accounts;
        }