Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> ExecuteAsync(int zoneId, CancellationToken cancellationToken) { var zone = await zoneRepository.Get(zoneId, cancellationToken); if (zone == null) { return(new NotFoundResult()); } zone = await zoneRepository.ToggleStatus(zoneId, cancellationToken); var zoneViewModel = zoneToZoneMapper.Map(zone); return(new OkObjectResult(zoneViewModel)); }