public ActionResult Create() { AccountingVendor accountingVendor = new AccountingVendor(); accountingVendor.Active = true; return View(accountingVendor); }
public ActionResult Edit(AccountingVendor accountingVendor) { if (ModelState.IsValid) { unitOfWork.AccountingVendorRepository.Update(accountingVendor); unitOfWork.Save(); return RedirectToAction("Index"); } return View(accountingVendor); }