Ejemplo n.º 1
0
        public ActionResult RegistrarCompetenciaxArea(FormCollection form)
        {
            var idCurriculaBase = Convert.ToInt32(form["hidIdCurriculaBase"]);
            var area            = Convert.ToInt32(form["cboArea"]);
            var competencia     = Convert.ToInt32(form["cboCompetencia"]);

            var setBaseCompetencia = new CurriculaBaseCompetencia()
            {
                IdCurriculaBase  = idCurriculaBase,
                IdAreaCurricular = area,
                IdCompetencia    = competencia
            };

            var exito = GestionPedagogica.RegistrarCompetenciaArea(setBaseCompetencia);

            var js = new JavaScriptSerializer();

            return(Content(js.Serialize(exito)));
        }