示例#1
0
 public void Put(string id, [FromBody] CreateUserLoginMvoDto value)
 {
     try {
         UserLoginMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _userLoginMvoApplicationService.When(value as ICreateUserLoginMvo);
     } catch (Exception ex) { var response = UserLoginMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
示例#2
0
        public async Task WhenAsync(CreateUserLoginMvoDto c)
        {
            var idObj         = UserLoginMvoProxyUtils.ToIdString((c as ICreateUserLoginMvo).UserLoginId);
            var uriParameters = new UserLoginMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new UserLoginMvoPutRequest(uriParameters, (CreateUserLoginMvoDto)c);

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

            UserLoginMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
示例#3
0
 public void When(CreateUserLoginMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }