public List <Customer> GetCustomerList() { try { var customerlist = CustomerAccessor.FetchCustomerList(); if (customerlist.Count > 0) { return(customerlist); } else { throw new ApplicationException("No records found"); } } catch (Exception) { //*** we should sort the possible exceptions and return diff messages for each. throw; } }