Example #1
0
        [HttpGet("GetAll")] //API untuk mendapatkan semua data Invoice yang sudah disubmit
        public IActionResult GetAllInvoice()
        {
            var response = new GenericResponseModel <List <InvoiceModel> >();
            var bl       = new InvoiceBL();

            response = bl.GetAll();

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

            return(Ok(response));
        }