public ActionResult Create()
 {
     RequisitionClientTeam requisitionclientteam = new RequisitionClientTeam();
     ViewBag.PossibleRequisitionClientInfoes = requisitionclientinfoRepository.All;
     ViewBag.PossibleContacts = contactRepository.All;
     return View(requisitionclientteam);
 }
 public ActionResult Create(RequisitionClientTeam requisitionclientteam)
 {
     if (ModelState.IsValid) {
         requisitionclientteamRepository.InsertOrUpdate(requisitionclientteam);
         requisitionclientteamRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleRequisitionClientInfoes = requisitionclientinfoRepository.All;
         ViewBag.PossibleContacts = contactRepository.All;
         return View(requisitionclientteam);
     }
 }
 public ViewResult Search(RequisitionClientTeam searchRequisitionClientTeam)
 {
     if(searchRequisitionClientTeam!=null)
     {
                     }
                 return View("Index",requisitionclientteamRepository.AllIncluding(requisitionclientteam => requisitionclientteam.RequisitionClientInfo, requisitionclientteam => requisitionclientteam.Contact));
 }
 public void InsertOrUpdate(RequisitionClientTeam requisitionclientteam)
 {
     if (requisitionclientteam.RequisitionClientTeamID == default(int)) {
         // New entity
         context.RequisitionClientTeam.Add(requisitionclientteam);
     } else {
         // Existing entity
         context.Entry(requisitionclientteam).State = EntityState.Modified;
     }
 }