Beispiel #1
0
        //GET: Create
        //FlashCardUserAttempt/Create

        public ActionResult Create(int id) // id is userCardId from our view
        {
            UserFlashCardService svc = new UserFlashCardService();

            var model = new FlashCardUserAttemptCreate()
            {
                UserFlashCard = svc.GetUserFlashCardById(id),
            };

            return(View(model));
        }
        private UserFlashCardService CreateUserFlashCardService()
        {
            var service = new UserFlashCardService();

            return(service);
        }