자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> DeleteAsync(string id) { var deposit = await _depositRepository.GetByIDAsync(id); if (deposit == null) { return(NotFound()); } await _depositRepository.DeleteAsync(deposit); await _publishEndpoint.Publish(new DepositDeleted(deposit.CustomerCID)); return(NoContent()); }