Ejemplo n.º 1
0
 public ActionResult Edit(BusProposal busProposal, int ExecSummaryId)
 {
     if (ExecSummaryId != 0)
     {
         _db.ExecSummaryBusProposal.Add(new ExecSummaryBusProposal()
         {
             ExecSummaryId = ExecSummaryId, BusProposalId = busProposal.BusProposalId
         });
     }
     _db.Entry(busProposal).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Ejemplo n.º 2
0
 public ActionResult Edit(ExecSummary execSummary)
 {
     _db.Entry(execSummary).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }