public async Task <ActionResult> CancelTrade(int id, TradeCancelType cancelType) { var result = await TradeWriter.CancelTrade(User.Id(), new CancelTradeModel { //TradeId = id, //TradePairId = id, CancelType = cancelType }); return(Json(result)); }
public async Task <ActionResult> CancelTrade(CancelTradeModel model) { var result = await TradeWriter.CancelTrade(User.Id(), model); if (result.HasErrors) { return(JsonError()); } return(JsonSuccess()); }