示例#1
0
 public ActionResult StoreCreate(FigureStoreCreatingAndEditingView fs) // +
 {
     if (ModelState.IsValid)                                           //todo else
     {
         try
         {
             _figuresService.CreateFigureStore(new FiguresStoreBll(0, fs.Name));
             return(RedirectToAction("FigureStoreList"));
         }
         catch (Exception ex)
         {
             return(HttpNotFound(ex.Message));
         }
     }
     return(View(fs));
 }