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); } }
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); }
public void When(CreateUserLoginMvoDto c) { WhenAsync(c).GetAwaiter().GetResult(); }