예제 #1
0
        [HttpGet("GetAllProps")] //API untuk mendapatkan semua properti yang dibutuhkan UI
        public IActionResult GetAllProps()
        {
            var response = new GenericResponseModel <InvoicePropertyModel>();
            var bl       = new InvoiceBL();

            response = bl.GetAllProps();

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

            return(Ok(response));
        }