예제 #1
0
        public ActionResult Edit(int id)
        {
            MenuLunchRightVM model = new MenuLunchRightVM()
            {
                menuImgAreaSecondsList  = db.menuImgAreaSeconds.ToList(),
                MenuImgAreaSecondSingle = db.menuImgAreaSeconds.FirstOrDefault(m => m.Id == id),
                Action = "Edit"
            };

            return(View("Index", model));
        }
예제 #2
0
        public ActionResult Index()
        {
            MenuLunchRightVM model = new MenuLunchRightVM()
            {
                menuImgAreaSecondsList  = db.menuImgAreaSeconds.ToList(),
                MenuImgAreaSecondSingle = null,
                Action = "Create"
            };

            return(View(model));
        }