public void Invoice(WarrantyClaimInvoiceModel model)
        {
            using (var db = CreateCatalog())
            {
                var claimObj = db.Claims.GetById(model.Id);
                var statusObj = db.ClaimStatuses.GetByCode("INV");

                claimObj.InvoiceNumber = model.InvoiceNumber;
                claimObj.RepairDate = model.RepairDate;
                claimObj.ClaimStatus.Id = statusObj.Id;
                db.Claims.Update(claimObj);

                db.ClaimHistory.Create(claimObj.Id, statusObj.Id);

                if (!string.IsNullOrWhiteSpace(model.Comment))
                {
                    var vehicleSvc = new VehicleLogic(Ticket);
                    vehicleSvc.AddNote(claimObj.PolicyId, claimObj.Id, model.Comment);
                }
            }
        }
        public ActionResult Invoice(int id, FormCollection form)
        {
            var model = new WarrantyClaimInvoiceModel();
            model.Id = id;
            model.InvoiceNumber = form["invoiceNumber"];
            model.RepairDate = StringUtility.ToDateTime(form["repairDate"]);
            model.Comment = form["comment"];

            var claimSvc = new WarrantyClaimLogic(Ticket);
            claimSvc.Invoice(model);

            return RedirectToAction("Display", new { id = id });
        }
        public ActionResult Invoice(int id)
        {
            var model = new WarrantyClaimInvoiceModel();
            model.Id = id;

            return View(model);
        }