Beispiel #1
0
        public async Task <IActionResult> Post([FromBody] Supplier supplier)
        {
            var data = await _supplierManager.AddAsync(supplier);

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