Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> ArchiveCity(int id) { try { var data = await cityService.ArchiveCity(id); return(StatusCode(StatusCodes.Status200OK, data)); } catch (Exception ex) { // Log exception code goes here return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }