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; }
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); }