public async Task <IActionResult> Editar(int id) { try { var amigoViewModel = await _amigoService.GetById(id); return(View(amigoViewModel)); } catch (Exception) { TratarErro(); } return(View()); }
public async Task <IActionResult> Editar(int id) { try { var amigoViewModel = await _amigoService.GetById(id); return(View(amigoViewModel)); } catch (Exception) { TratarErro(); } return(View()); }