Esempio n. 1
0
 //
 // GET: /Contract/Details/5
 public ViewResult Details(int id)
 {
     ContractService service = new ContractService();
     Contract model = service.GetContractByID(new Contract() { Id = id });
     model.ActionOperationType = EActionOperationType.Details;
     return View("Create",model);
 }
Esempio n. 2
0
 public ActionResult DeleteConfirmed(int id)
 {
     ContractService service = new ContractService();
     Contract model = service.GetContractByID(new Contract() { Id = id });
     service.Remove(model);
     return RedirectToAction("Index");
 }
Esempio n. 3
0
 //
 // GET: /Contract/Edit/5
 public ActionResult Edit(int id)
 {
     ContractService service = new ContractService();
     Contract model = service.GetContractByID(new Contract() { Id = id });
     model.ActionOperationType = EActionOperationType.Edit;
     this.LoadEditViewBag(model);
     return View("Create",model);
 }