Ejemplo n.º 1
0
        public virtual JsonResult QuestStatesInQuestJSON(int Id)
        {
            var states = QuestWriterProcedures.GetAllQuestsStatesInQuest(Id);
            var output = from s in states
                         select new
            {
                Id        = s.Id,
                StateName = s.QuestStateName
            };

            return(Json(output, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public virtual ActionResult ShowAllQuestStates(int Id)
        {
            var output = QuestWriterProcedures.GetAllQuestsStatesInQuest(Id);

            return(PartialView(MVC.QuestWriter.Views.ShowAllQuestStates, output));
        }