示例#1
0
 public ActionResult AddEvents(List <Event> item)
 {
     if (ModelState.IsValid)
     {
         bool result = matchProvider.AddEvent(item.ToArray());
         if (!result)
         {
             log.Error("Controller: Match, Action: EditMatch Don't add Match");
         }
         else
         {
             cacheService.DeleteCache(cacheKey);
         }
         return(RedirectToAction("ShowMatches"));
     }
     else
     {
         return(View());
     }
 }