public async Task <IHttpActionResult> DeleteTrading(string id) { Trading trading = _SVC.GetTrading(id); if (trading == null) { return(NotFound()); } await _SVC.DeleteTrading(trading); return(Ok(trading)); }
async public Task <ActionResult> Delete(string xTransNo) { return(Content(await _Service.DeleteTrading(_Service.GetTrading(xTransNo)))); }