Example #1
0
        public async Task <IActionResult> Delete([FromBody] int id)
        {
            var data = await _supplierManager.DeleteAsync(new Supplier { SupplierId = (short)id });

            if (data)
            {
                return(Ok("Supplier deleted"));
            }
            else
            {
                return(BadRequest("Supplier could not be deleted."));
            }
        }