예제 #1
0
 public ActionResult AddNewGoods(Vare innVare)
 {
     if (loginCheck() == false)
     {
         return(RedirectToAction("LoggInn"));
     }
     if (ModelState.IsValid)
     {
         var  vareDb   = new VareBLL();
         bool insertOK = vareDb.insertVare(innVare);
         if (insertOK)
         {
             return(RedirectToAction("ListGoods"));
         }
     }
     return(View());
 }