示例#1
0
 public void Delete(Account acct)
 {
     try
     {
         IAccountRepository accountRepo = new AccountsRepository();
         accountRepo.DeleteAccount(acct);
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
 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));
        }