// GET: Hive/Delete/5 public ActionResult Delete(int id) { var service = new HiveService(); var model = service.GetHiveById(id); return(View(model)); }
// 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()); }