public ActionResult Details(int id) { var model = _db.GetSingle(id); if (model == null) { return(View("NotFound")); } return(View(model)); }
public Restaurante Get(int id) { var model = _db.GetSingle(id); return(model); }