Пример #1
0
        public Customer GetCustomerByUserName(string username)
        {
            try
            {
                Customer customer = CustomerAccessor.FetchCustomerByUserName(username);

                if (customer != null)
                {
                    return(customer);
                }
                else
                {
                    throw new ApplicationException("There were no records found.");
                }
            }
            catch (Exception)
            {
                throw;
            }
        }