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