示例#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));
 }