예제 #1
0
        public void Post([FromBody] string value)
        {
            DeleteUserParam delUser    = Newtonsoft.Json.JsonConvert.DeserializeObject <DeleteUserParam>(value);
            IUserWriter     userWriter = new UserWriter();

            userWriter.DeleteUser(delUser);
        }
예제 #2
0
        public void DeleteUser(DeleteUserParam userParam)
        {
            string deleteWishes   = "delete Wishes where OwnerId = @Id";
            string deleteUser     = "******";
            string deletePassword = "******";

            dbr.DeleteDataInTransaction(new string[] { deleteWishes, deleteUser, deletePassword }, userParam);
        }
예제 #3
0
            /// <summary>
            /// 删除用户
            /// </summary>
            /// <param name="userId">用户 ID</param>
            /// <param name="cancellationToken"></param>
            /// <returns></returns>
            public async Task <CommonMessage> Delete(
                string userId,
                CancellationToken cancellationToken = default)
            {
                var param = new DeleteUserParam(userId);
                var res   = await client.Request <DeleteUserResponse>(param.CreateRequest(), cancellationToken);

                return(res.Result);
            }
 public int DeleteUser(DeleteUserParam _param)
 {
     try
     {
         return((int)Mapper.Instance().Update(MethodBase.GetCurrentMethod().Name, _param));
     }
     catch (Exception)
     {
         throw;
     }
 }
        public int DeleteUser(UsersDeleteModel _param)
        {
            // DB検索用パラメータークラス用意
            DeleteUserParam DeleteUserParam = new DeleteUserParam();

            DeleteUserParam.Id = _param.Id;

            // 削除実施
            IUsersRepository authenticationRepository = new UsersRepositoryImpl();
            var result = authenticationRepository.DeleteUser(DeleteUserParam);

            return(result);
        }
예제 #6
0
        public DeleteUserResult DeleteUser(DeleteUserParam deleteUserParam)
        {
            var result = _restHelper.Post <DeleteUserParam, DeleteUserResult>("/api/v1/users.delete", deleteUserParam, _headers);

            return(result);
        }