コード例 #1
0
 public ActionResult AddSubcriber(M_Subscriber model)
 {
     userID = GetUser();
     if (model != null)
     {
         try
         {
             model.saveSubscriber(userID);
         }
         catch (M_CustomException ex)
         {
             ModelState.AddModelError("addsub", ex.message);
             return(RedirectToAction("AddSubcriber/" + model.ListID));
         }
     }
     return(RedirectToAction("Index", "List"));
 }