public void Patch(string id, [FromBody] MergePatchUserLoginMvoDto value) { try { UserLoginMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value); _userLoginMvoApplicationService.When(value as IMergePatchUserLoginMvo); } catch (Exception ex) { var response = UserLoginMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); } }
public async Task WhenAsync(MergePatchUserLoginMvoDto c) { var idObj = UserLoginMvoProxyUtils.ToIdString((c as IMergePatchUserLoginMvo).UserLoginId); var uriParameters = new UserLoginMvoUriParameters(); uriParameters.Id = idObj; var req = new UserLoginMvoPatchRequest(uriParameters, (MergePatchUserLoginMvoDto)c); var resp = await _ramlClient.UserLoginMvo.Patch(req); UserLoginMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public void When(MergePatchUserLoginMvoDto c) { WhenAsync(c).GetAwaiter().GetResult(); }