Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            var service = new PromptServices();

            var model = service.GetPromptById(id);

            return(View(model));
        }
Ejemplo n.º 2
0
        public PromptItem GetPrompt(int id)
        {
            var service = new PromptServices();

            var model = service.GetPromptById(id);

            return(new PromptItem
            {
                Prompt = model.Prompt
            });
        }
Ejemplo n.º 3
0
        public ActionResult Edit(int id)
        {
            var service = new PromptServices();

            var prompt = service.GetPromptById(id);

            var model =
                new PromptEdit
            {
                PromptId = prompt.PromptId,
                Category = prompt.Category,
                Prompt   = prompt.Prompt
            };

            return(View(model));
        }