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