예제 #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); }
 }
예제 #2
0
 public void Delete(string id, string commandId, string version, string requesterId = default(string))
 {
     try {
         var value = new DeleteUserLoginMvoDto();
         value.CommandId   = commandId;
         value.RequesterId = requesterId;
         value.UserVersion = (long)Convert.ChangeType(version, typeof(long));
         UserLoginMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _userLoginMvoApplicationService.When(value as IDeleteUserLoginMvo);
     } catch (Exception ex) { var response = UserLoginMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }