Ejemplo n.º 1
0
        public IActionResult PotPage(int id)
        {
            var pot = backEnd.getPotById(id);
            var v   = View();

            v.ViewData["id"]  = id;
            v.ViewData["pot"] = pot;
            return(v);
        }
Ejemplo n.º 2
0
        public string getPotById(int id)
        {
            Pots pot = backEnd.getPotById(id);

            if (pot == null)
            {
                return(null);
            }
            else
            {
                return(stringify_pot(pot));
            }
        }