public Response <IEnumerable <Customer> > GetAllCustomer() { Response <IEnumerable <Customer> > response = new Response <IEnumerable <Customer> >(); CustomerAccessor accessor = new CustomerAccessor(); try { response.Result = accessor.GetAllCustomer(); response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }