Exemplo n.º 1
0
 public ActionResult EditContract(vwEditContract model)
 {
     Contract obj = new Contract();
     obj = model.selectedContract;
     db.EditContract(obj);
     return RedirectToAction("Index");
 }
Exemplo n.º 2
0
 public ActionResult EditContract(int id, int showClinic = 0, int showAnalysis = 0)
 {
     vwEditContract obj = new vwEditContract();
     obj.selectedContract = dbm.Contracts.SingleOrDefault(o => o.ContractID == id);
     if (showClinic > 0)
     {
         obj.listClinicForContract = db.GetClinicsListForContract(id);
     }
     else
     {
         obj.listClinicForContract = null;
     }
     if (showAnalysis > 0)
     {
         obj.listMBAnalysisForContract = db.GetMBAnalysisListForContract(id);
     }
     else
     {
         obj.listMBAnalysisForContract = null;
     }
     return View(obj);
 }