Esempio n. 1
0
        public IActionResult Details(Guid id)
        {
            CustomResponse retorno = CondominioService.GetById(baseUri, id);

            CondominioViewModel user = JsonConvert.DeserializeObject <CondominioViewModel>(JsonConvert.SerializeObject(retorno.Data));

            return(View(user));
        }
Esempio n. 2
0
        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));
        }