public IActionResult PotPage(int id) { var pot = backEnd.getPotById(id); var v = View(); v.ViewData["id"] = id; v.ViewData["pot"] = pot; return(v); }
public string getPotById(int id) { Pots pot = backEnd.getPotById(id); if (pot == null) { return(null); } else { return(stringify_pot(pot)); } }