// [Authorize(Roles = "ExternalSupplier:12, ExternalSupplier:13, ExternalSupplier:15, ExternalSupplier:16")] public IActionResult Create([FromBody] Supplier supplier) { var res = _supplier.addSupplier(supplier); if (res == true) { return(CreatedAtRoute("SupplierById", new { Controller = "ExternalSupplier", id = supplier.SupplierId }, supplier)); } return(StatusCode(500)); }