Ejemplo n.º 1
0
        public ActionResult Delete(int matchId)
        {
            bool result = matchProvider.DeleteMatch(matchId);

            if (!result)
            {
                log.Error("Controller: Match, Action: DeleteMatch Don't delete Match");
            }
            else
            {
                cacheService.DeleteCache(cacheKey);
            }
            return(RedirectToAction("ShowMatches"));
        }