Пример #1
0
 public void OnGet(int?id)
 {
     Areas = helper.GetEnumSelectList <Area>();
     if (id.HasValue)
     {
         Materia = service.GetMateriaPorID(id.Value);
     }
     else
     {
         Materia = new ClassMateria();
     }
 }
Пример #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());
            }
        }
Пример #3
0
 public void OnGet(int Id)
 {
     this.materia = service.GetMateriaPorID(Id);
 }