Ejemplo n.º 1
0
        // GET: Solution
        public ActionResult Index()
        {
            var solutions            = _ourSolutionsService.GetAllSolutions();
            var orSolutionsViewModel = Mapper.Map <IEnumerable <OurSolution>, IEnumerable <OurSolutionsViewModel> >(solutions);

            return(View(orSolutionsViewModel));
        }
Ejemplo n.º 2
0
        public ActionResult GetSolutions([DataSourceRequest] DataSourceRequest request)
        {
            var solutions            = _ourSolutionsService.GetAllSolutions();
            var ourSolutionViewModel = Mapper.Map <IEnumerable <OurSolution>, IEnumerable <OurSolutionsViewModel> >(solutions);

            return(Json(ourSolutionViewModel.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }