public void RecalculateInvoice(InvoiceModel model) { using (var db = DB.GetContext()) { InvoiceRepository.CalculateInvoice(db, model); } }