Пример #1
0
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ClienteViewModel clienteViewModel = _filiacaoAppService.ObterPorId(id.Value);

            if (clienteViewModel == null)
            {
                return(HttpNotFound());
            }
            return(View(clienteViewModel));
        }
 // GET: api/Clientes/5
 public ClienteViewModel Get(Guid id)
 {
     return(_filiacaoAppService.ObterPorId(id));
 }