示例#1
0
        public async Task<ProfileResponseModel> PutProfile([FromBody]UpdateProfileRequestModel model)
        {
            await _userService.SaveUserAsync(model.ToUser(_currentContext.User));

            var response = new ProfileResponseModel(_currentContext.User);
            return response;
        }
示例#2
0
 public Task<ProfileResponseModel> GetProfile()
 {
     var response = new ProfileResponseModel(_currentContext.User);
     return Task.FromResult(response);
 }