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