public IActionResult BillsList(string search = null) { var bills = _billsService.GetAllBills(search); var billsModel = bills.Select(s => new BillModel { Amount = s.Amount.ToString(CultureInfo.InvariantCulture), BillDate = s.BillDate, Description = s.Description, PersonName = s.Person.Name, Id = s.BillId }).ToList(); return(View(new BillsListViewModel { Bills = billsModel, Search = search })); }
public IActionResult Index() { var bills = _billsService.GetAllBills(); return(View("AddBill")); }
public IEnumerable <Bill> GetbillModels() { return(billService.GetAllBills()); }
public ActionResult <IEnumerable <Bill> > Get() { return(Ok(_billsService.GetAllBills())); }
public ActionResult Index() { var model = _billsService.GetAllBills(); return(View(model)); }