Beispiel #1
0
 public void Patch(string id, [FromBody] MergePatchUserPermissionMvoDto value)
 {
     try {
         UserPermissionMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _userPermissionMvoApplicationService.When(value as IMergePatchUserPermissionMvo);
     } catch (Exception ex) { var response = UserPermissionMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchUserPermissionMvoDto c)
        {
            var idObj         = UserPermissionMvoProxyUtils.ToIdString((c as IMergePatchUserPermissionMvo).UserPermissionId);
            var uriParameters = new UserPermissionMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new UserPermissionMvoPatchRequest(uriParameters, (MergePatchUserPermissionMvoDto)c);
            var resp = await _ramlClient.UserPermissionMvo.Patch(req);

            UserPermissionMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchUserPermissionMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }