Exemplo n.º 1
0
        // GET: Hive/Delete/5
        public ActionResult Delete(int id)
        {
            var service = new WorkerBeeService();
            var model   = service.GetBeesById(id);

            return(View(model));
        }
Exemplo n.º 2
0
        // GET: Hive/Edit/5
        public ActionResult Edit(int id)
        {
            var service = new WorkerBeeService();
            var detail  = service.GetBeesById(id);
            var model   = new WorkerBeeEdit
            {
                OriginDate     = detail.OriginDate,
                OriginLocation = detail.OriginLocation,
            };

            return(View());
        }