Beispiel #1
0
        // GET: Tamagotchi/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Tamagochi tamagotchi = _tamagotchiRepo.GetById(id);

            if (tamagotchi == null)
            {
                return(HttpNotFound());
            }
            return(View(tamagotchi));
        }