Пример #1
0
        public async Task <IActionResult> DeleteAccount([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await _accountsRepository.Delete(id);

            return(Ok(result));
        }
Пример #2
0
 public Task DeleteAccount(Guid accountId)
 {
     return(_accountsRepository.Delete(accountId));
 }
Пример #3
0
 public void DeleteAccount([FromRoute] long id)
 {
     repository.Delete(id);
 }
Пример #4
0
 public Account Delete(Account account)
 {
     return(_accountRepository.Delete(account));
 }