//
 // 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);
 }
 public ActionResult DeleteConfirmed(int id)
 {
     ContractService service = new ContractService();
     Contract model = service.GetContractByID(new Contract() { Id = id });
     service.Remove(model);
     return RedirectToAction("Index");
 }
 //
 // 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);
 }