예제 #1
0
        public ActionResult Edit(SetOfBookModel model)
        {
            if (ModelState.IsValid)
            {
                string result = service.Update(MapModel(model));
                return(RedirectToAction("Index"));
            }

            return(View(model));
        }
예제 #2
0
 public static string Update(SetOfBookModel model)
 {
     return(service.Update(getEntityByModel(model)));
 }