public async Task <viewModel.InvoiceLineView> Add([FromBody] transModel.InvoiceLineAdd add)
        {
            var addTrans = new trans.InvoiceLineTransactions();
            var result   = await addTrans.Add(add);

            return((viewModel.InvoiceLineView)result);
        }
        public async Task <viewModel.InvoiceLineView> Update([FromRoute] int invoiceLineId, [FromBody] transModel.InvoiceLineUpdate update)
        {
            update.InvoiceLineId = invoiceLineId;
            var updateTrans = new trans.InvoiceLineTransactions();
            var result      = await updateTrans.Update(update);

            return((viewModel.InvoiceLineView)result);
        }
 public async Task Delete([FromRoute] int invoiceLineId)
 {
     var deleteTrans       = new trans.InvoiceLineTransactions();
     var invoiceLineDelete = new transModel.InvoiceLineDelete()
     {
         InvoiceLineId = invoiceLineId
     };
     await deleteTrans.Delete(invoiceLineDelete);
 }