コード例 #1
0
 public ActionResult Edit(int id, ActividadesPorGrupoModel model)
 {
     try
     {
         // TODO: Add insert logic here
         if (!ModelState.IsValid)
         {
             return(View(model));
         }
         model.states = Dominio.ObjetosValor.EntityStates.Update;
         model.SaveChanges();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(model));
     }
 }
コード例 #2
0
 public ActividadesPorGrupoController()
 {
     ActividadesPorGrupoModelmodel = new ActividadesPorGrupoModel();
 }