예제 #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"));
        }