Esempio n. 1
0
        // GET: Hive/Delete/5
        public ActionResult Delete(int id)
        {
            var service = new HiveService();
            var model   = service.GetHiveById(id);

            return(View(model));
        }
Esempio n. 2
0
        // GET: Hive/Edit/5
        public ActionResult Edit(int id)
        {
            var service = new HiveService();
            var detail  = service.GetHiveById(id);
            var model   = new HiveEdit
            {
                HiveName      = detail.HiveName,
                OriginDate    = detail.OriginDate,
                NumberOfDeeps = detail.NumberOfDeeps,
                HasSwarmed    = detail.HasSwarmed,
                Status        = detail.Status,
                LocationId    = detail.LocationId
            };

            return(View());
        }