Пример #1
0
        [HttpGet("GetNewInvoice")] //API untuk mendapatkan data invoice terbaru
        public IActionResult GetNewInvoice()
        {
            var response = new GenericResponseModel <InvoiceModel>();
            var bl       = new InvoiceBL();

            response = bl.GetInvoiceDetail();

            if (!response.Status)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }