Beispiel #1
0
 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); }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void When(MergePatchUserLoginMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }