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