Exemplo n.º 1
0
        public ActionResult GetTemplates()
        {
            IEnumerable <TemplateViewModel> templates = Mapper.Map <List <TemplateViewModel> >(templatesRepository.GetAll());

            return(Json(templates, JsonRequestBehavior.AllowGet));
        }