Beispiel #1
0
 public void Put(string id, [FromBody] CreateUserRoleMvoDto value)
 {
     try {
         UserRoleMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _userRoleMvoApplicationService.When(value as ICreateUserRoleMvo);
     } catch (Exception ex) { var response = UserRoleMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(CreateUserRoleMvoDto c)
        {
            var idObj         = UserRoleMvoProxyUtils.ToIdString((c as ICreateUserRoleMvo).UserRoleId);
            var uriParameters = new UserRoleMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new UserRoleMvoPutRequest(uriParameters, (CreateUserRoleMvoDto)c);

            var resp = await _ramlClient.UserRoleMvo.Put(req);

            UserRoleMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(CreateUserRoleMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }