Пример #1
0
        public ActionResult CarregarEditoria(int EditoriaId, int IdiomaId)
        {
            int SiteId = GetCurrentSite();

            EditoriaDAL editoriaDAL = new EditoriaDAL();
            var resposta = editoriaDAL.Carregar(EditoriaId, IdiomaId, false);

            return Json(resposta, JsonRequestBehavior.AllowGet);
        }
Пример #2
0
        public ActionResult ListarEditoria()
        {
            int SiteId = GetCurrentSite();
            int IdiomaId = 1;

            EditoriaDAL editoriaDAL = new EditoriaDAL();
            List<Editoria> listaEditoria = editoriaDAL.ListarEditoria(SiteId, IdiomaId);

            return Json(listaEditoria, JsonRequestBehavior.AllowGet);
        }