public ActionResult Update(BillWithBillLineViewModel model)
        {
            var bill = _billLineService.GetById(model.BillId);

            _billService.Update(BillWithBillLineViewModel.To(model));
            return(RedirectToAction("Index"));
        }
        public ActionResult BillView(int id)
        {
            var bill  = _billService.GetWithBillLine(id);
            var model = new BillWithBillLineViewModel();

            model.BillId            = id;
            model.BillLines         = bill.BillLines;
            model.Deliverer         = bill.Deliverer;
            model.Date              = bill.Date;
            model.Hour              = bill.Hour;
            model.RowNumber         = bill.RowNumber;
            model.TaxAdministration = bill.TaxAdministration;
            model.Receiver          = bill.Receiver;
            return(View(model));
        }
        public ActionResult Update(int id)
        {
            var bill = _billService.GetById(id);

            return(View(BillWithBillLineViewModel.From(bill)));
        }