public async Task <DeleteEstablishmentResponse> Handle( DeleteEstablishmentRequest request, CancellationToken cancellationToken) { return(await Task.FromResult(new DeleteEstablishmentResponse(_repository.Delete(request.Id)) )); }
public IActionResult DeleteEstablishment([FromRoute] int id) { _establishmentRepository.Delete(id); return(Ok()); }
public void Delete(int id) { establishmentRepository.Delete(id); }