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!");
 }
Exemple #3
0
        public async Task <ActionResult <Message> > DeleteUser(string accountId)
        {
            var deleted = await _accountsRepository.DeleteAccount(accountId);

            return(Ok(deleted));
        }