public ActionResult Index() { var results = _confService.GetConfiguraciones().ToList(); if (!Request.IsAjaxRequest()) { var models = Mapper.Map <List <ConfiguracionSistemaViewModel> >(results); return(View(models)); } else { return(JsonSettings.BuildJsonResult(results)); } }