예제 #1
0
        public GetAllUserResponse GetAll() 
        {
            GetAllUserResponse response = new GetAllUserResponse();

            try
            {
                response.Success = true;
                response.List = this._userService.GetAll().MapToDepartmentViewModelList();
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return response;
        }
예제 #2
0
        public GetAllUserResponse GetAll()
        {
            GetAllUserResponse response = new GetAllUserResponse();

            try
            {
                response.Success = true;
                response.List    = this._userService.GetAll().MapToDepartmentViewModelList();
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }