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)); }
public virtual ActionResult ShowAllQuestStates(int Id) { var output = QuestWriterProcedures.GetAllQuestsStatesInQuest(Id); return(PartialView(MVC.QuestWriter.Views.ShowAllQuestStates, output)); }