public IActionResult Details(Guid id) { CustomResponse retorno = CondominioService.GetById(baseUri, id); CondominioViewModel user = JsonConvert.DeserializeObject <CondominioViewModel>(JsonConvert.SerializeObject(retorno.Data)); return(View(user)); }
public IActionResult Delete(Guid id) { if (id == null) { return(NotFound()); } CustomResponse retorno = CondominioService.GetById(baseUri, id); CondominioViewModel user = JsonConvert.DeserializeObject <CondominioViewModel>(JsonConvert.SerializeObject(retorno.Data)); if (user == null) { return(NotFound()); } return(View(user)); }