public ActionResult DeleteConfirmed(string id) { BillingAccountType billingAccountType = _billingAccountTypeService.GetBillingAccountType(id); _billingAccountTypeService.Delete(billingAccountType); _billingAccountTypeService.SaveBillingAccountType(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "BillingAccountTypeId,Description,Billable,Dunning,Inactive")] BillingAccountType billingAccountType) { if (ModelState.IsValid) { _billingAccountTypeService.Update(billingAccountType); _billingAccountTypeService.SaveBillingAccountType(); return(RedirectToAction("Index")); } return(View(billingAccountType)); }
// GET: BillingAccountTypes/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BillingAccountType billingAccountType = _billingAccountTypeService.GetBillingAccountType(id); if (billingAccountType == null) { return(HttpNotFound()); } return(View(billingAccountType)); }
public void Delete(BillingAccountType billingAccountType) { _billingAccountTypeRepository.Delete(billingAccountType); }
public void Update(BillingAccountType billingAccountType) { _billingAccountTypeRepository.Update(billingAccountType); }
public void CreateBillingAccountType(BillingAccountType billingAccountType) { _billingAccountTypeRepository.Add(billingAccountType); }