Пример #1
0
 public ActionResult Guardar(Dia objDia)
 {
     if (ModelState.IsValid)
     {
         objDia.Guardar();
         return(Redirect("~/Dia"));
     }
     else
     {
         return(View("~/Views/Dia/AgregarEditar.cshtml"));
     }
 }
Пример #2
0
 public bool RelacionDiaOferta(Guid UidDia, Guid Usuario)
 {
     try
     {
         oDia     = new Dia();
         oDia.UID = UidDia;
         return(oDia.Guardar("asp_RelacionDiaOferta", Usuario));
     }
     catch (Exception)
     {
         throw;
     }
 }