public ActionResult CreatePayRate(PayRateModel payRate) { if (ModelState.IsValid) { _payRateRepository.AddPayRate(payRate); return(RedirectToAction("PayRatesList")); } else { return(View(payRate)); } }
public void AddPayRate(PayRateModel payRate) { if (payRate != null) { PayRate newPayRate = new PayRate() { CompanionRate = payRate.CompanionRate, PatientRate = payRate.PatientRate }; _domainObjectRepository.Create <PayRate>(newPayRate); } }
public ActionResult CreatePayRate() { PayRateModel payRate = new PayRateModel(); return(View(payRate)); }