public ActionResult Consulta(int id) { try { var dato = ObjCliente.ConsultaCliente(id); return(View(dato)); } catch (Exception) { throw; } }
public IHttpActionResult GetCliente(int id) { ConsultaClienteResult cliente = db.ConsultaCliente(id); if (cliente == null) { return(NotFound()); } return(Ok(cliente)); }