public UpcomingBill UpdateUpcomingBill(string id, UpcomingBill billItem) { for (var index = _billItems.Count - 1; index >= 0; index--) { if (_billItems[index].ID == id) { _billItems[index] = billItem; } } return(billItem); }
public ActionResult <UpcomingBill> UpdateUpcomingBill(string id, UpcomingBill bill) { _service.UpdateUpcomingBill(id, bill); return(bill); }
public ActionResult <UpcomingBill> AddUpcomingBill(UpcomingBill bill) { _service.AddUpcomingBill(bill); return(bill); }
public UpcomingBill AddUpcomingBill(UpcomingBill billItem) { _billItems.Add(billItem); return(billItem); }