Esempio n. 1
0
        public ActionResult Unarchive(int cardId)
        {
            var tbl = new CardRepository();
            var card = tbl.Single(cardId);
            card.IsArchived = false;
            tbl.Save(card);

            return Json(true);
        }
Esempio n. 2
0
        public ActionResult MarkIncorrect(int cardId)
        {
            var tbl = new CardRepository();
            var card = tbl.Single(cardId);
            card.TimesIncorrect++;
            tbl.Save(card);

            return Json(true);
        }