public HttpResponseMessage GetById(int id)
        {
            Cliente items = c.GetById(id);

            if (items == null)
            {
                //Construyendo respuesta del servidor
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No hay ningun cliente con el id " + id));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, items));
        }
        public IActionResult Logado(int id)
        {
            var perfil = _clientes.GetById(id);

            var model = new PerfilClienteIndexModel
            {
                Id       = perfil.Id,
                Nome     = perfil.Nome,
                EMail    = perfil.Email,
                Telefone = perfil.Telefone
            };

            return(View(model));
        }