コード例 #1
0
 public void Delete(Account acct)
 {
     try
     {
         IAccountRepository accountRepo = new AccountsRepository();
         accountRepo.DeleteAccount(acct);
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
コード例 #2
0
 public string DeleteAccount(Guid id)
 {
     accrepository.DeleteAccount(id);
     return($"success!");
 }
コード例 #3
0
        public async Task <ActionResult <Message> > DeleteUser(string accountId)
        {
            var deleted = await _accountsRepository.DeleteAccount(accountId);

            return(Ok(deleted));
        }