예제 #1
0
        public async Task <IHttpActionResult> DeleteSupplier(string id)
        {
            Supplier supplier = _SVC.GetSupplier(id);

            if (supplier == null)
            {
                return(NotFound());
            }

            await _SVC.DeleteSupplier(supplier);

            return(Ok(supplier));
        }
예제 #2
0
 async public Task <ActionResult> Delete(string xID)
 {
     return(Content(await _Server.DeleteSupplier(_Server.GetSupplier(xID))));
 }