public async Task <ActionResult> UpdateProfile([FromBody] UserViewModel model) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(ModelStateErrorResponseError()); } model.Id = _systemUser.UserId; await _userAppService.UpdateProfile(model); return(ResponsePutPatch()); }
public async Task <ActionResult <DefaultResponse <bool> > > UpdateProfile([FromBody] ProfileViewModel model) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(false)); } model.Id = GetUserId(); await _userAppService.UpdateProfile(model); return(Response(true)); }