示例#1
0
 public ActionResult Create(StoreViewModel model)
 {
     if (ModelState.IsValid)
     {
         StoreLogic.CreateNewStore(model);
         return(Json(new { IsSucceeded = true }));
     }
     return(Json(new { IsSucceeded = false }));
 }
示例#2
0
        public ActionResult Create(StoreViewModel model)
        {
            StoreLogic.CreateNewStore(model);

            return(RedirectToAction("Index"));
        }