Esempio n. 1
0
 public void OnGet(int?id)
 {
     Areas = helper.GetEnumSelectList <Area>();
     if (id.HasValue)
     {
         Materia = service.GetMateriaPorID(id.Value);
     }
     else
     {
         Materia = new ClassMateria();
     }
 }
Esempio n. 2
0
        public ActionResult OnGet(int Id)
        {
            materia = service.GetMateriaPorID(Id);
            //if (TempData["Mensaje"] != null)
            //{
            //    Mensaje = TempData["Mensaje"].ToString();
            //}


            if (materia == null)
            {
                return(RedirectToPage("ErrorMateria"));
            }
            else
            {
                return(Page());
            }
        }
Esempio n. 3
0
 public void OnGet(int Id)
 {
     this.materia = service.GetMateriaPorID(Id);
 }