public ActionResult KeepInTouch() { GetKeepInTouchQueryResult result = Query.For <GetKeepInTouchQueryResult>().With(new EmptyCriterion()); KeepInTouchViewModel vm = ToViewModel(result.KeepInTouch); return(View(vm)); }
public ActionResult Index() { GetContactsMapQueryResult map = Query.For <GetContactsMapQueryResult>().With(new EmptyCriterion()); GetQuestionQueryResult question = Query.For <GetQuestionQueryResult>().With(new EmptyCriterion()); GetDocumentsQueryResult documents = Query.For <GetDocumentsQueryResult>().With(new EmptyCriterion()); GetKeepInTouchQueryResult keepInTouch = Query.For <GetKeepInTouchQueryResult>().With(new EmptyCriterion()); IndexViewModel vm = new IndexViewModel { Map = ToViewModel(map.Map), Documents = ToViewModel(documents), Question = ToViewModel(question.Question), KeepInTouch = ToViewModel(keepInTouch.KeepInTouch) }; return(View(vm)); }