Ejemplo n.º 1
0
        // GET: Queen/Delete/5
        public ActionResult Delete(int id)
        {
            var svc   = new QueenService();
            var model = svc.GetQueenById(id);

            return(View(model));
        }
Ejemplo n.º 2
0
        // GET: Queen/Edit/5
        public ActionResult Edit(int id)
        {
            var service = new QueenService();
            var detail  = service.GetQueenById(id);
            var model   =
                new QueenEdit
            {
                Age            = detail.Age,
                Color          = detail.Color,
                OriginDate     = detail.OriginDate,
                OriginLocation = detail.OriginLocation,
            };

            return(View(model));
        }