public async Task <ActionResult> Delete(Guid id) { var modulo = await _moduloRepository.GetByIdNoTracking(id); if (modulo == null) { return(NotFound()); } await _moduloService.Delete(id); return(NoContent()); }
public async Task <ActionResult> Delete(Guid id) { var modulo = await _moduloRepository.GetByIdNoTracking(id); if (modulo == null) { return(NotFound()); } await _moduloService.Delete(id); return(NoContent()); }