public ActionResult Create()
 {
     RequisitionClientInfo requisitionclientinfo = new RequisitionClientInfo();
     ViewBag.PossibleRequisitions = requisitionRepository.All;
     ViewBag.PossibleCompanies = companyRepository.All;
     ViewBag.PossibleSalaryRateTypes = salaryratetypeRepository.All;
     return View(requisitionclientinfo);
 }
 public ActionResult Create(RequisitionClientInfo requisitionclientinfo)
 {
     if (ModelState.IsValid) {
         requisitionclientinfoRepository.InsertOrUpdate(requisitionclientinfo);
         requisitionclientinfoRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleRequisitions = requisitionRepository.All;
         ViewBag.PossibleCompanies = companyRepository.All;
         ViewBag.PossibleSalaryRateTypes = salaryratetypeRepository.All;
         return View(requisitionclientinfo);
     }
 }
 public ViewResult Search(RequisitionClientInfo searchRequisitionClientInfo)
 {
     if(searchRequisitionClientInfo!=null)
     {
                     }
                 return View("Index",requisitionclientinfoRepository.AllIncluding(requisitionclientinfo => requisitionclientinfo.Requisition, requisitionclientinfo => requisitionclientinfo.Company, requisitionclientinfo => requisitionclientinfo.SalaryRateType));
 }
 public void InsertOrUpdate(RequisitionClientInfo requisitionclientinfo)
 {
     if (requisitionclientinfo.RequisitionClientInfoID == default(int)) {
         // New entity
         context.RequisitionClientInfo.Add(requisitionclientinfo);
     } else {
         // Existing entity
         context.Entry(requisitionclientinfo).State = EntityState.Modified;
     }
 }