public ActionResult Map() { GetContactsMapQueryResult result = Query.For <GetContactsMapQueryResult>().With(new EmptyCriterion()); MapViewModel vm = ToViewModel(result.Map); 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)); }