Пример #1
0
        public ActionResult Delete(int id)
        {
            var svc   = new LaunchSiteService();
            var model = svc.GetLaunchSiteById(id);

            return(View(model));
        }
Пример #2
0
        //Get
        public ActionResult Edit(int id)
        {
            var service = new LaunchSiteService();
            var detail  = service.GetLaunchSiteById(id);
            var model   =
                new LaunchSiteEdit
            {
                Id       = detail.Id,
                Name     = detail.Name,
                Location = detail.Location
            };

            return(View(model));
        }