コード例 #1
0
        public ActionResult CreateOrUpdate(string id)
        {
            var model = new HopViewModel();

            DropDownList();

            if (string.IsNullOrEmpty(id))
            {
                return(View(model));
            }
            else
            {
                var hop = _hopService.Get(m => m.Id == id);
                model = GetHop(hop);
                return(View(model));
            }
        }