public CancelTraGrabTicketResponseViewModel CancelGrabTicket(CancelTraGrabTicketRequestViewModel request) { CancelTraGrabTicketResultModel cancelTraGrabTicketResultModel = _cancelTraGrabTicketServiceBll.CancelTraGrabTicket(new CancelTraGrabTicketModel() { GrabId = request.GrabId }); return(new CancelTraGrabTicketResponseViewModel() { IsSuccess = cancelTraGrabTicketResultModel.IsSuccess, Message = cancelTraGrabTicketResultModel.Message }); }
public ResponseBaseViewModel <CancelTraGrabTicketResponseViewModel> CancelGrabTicket([FromBody] CancelTraGrabTicketRequestViewModel request) { request.Oid = this.GetOid(); CancelTraGrabTicketResponseViewModel responseViewModel = _cancelGrabTicketApplication.CancelGrabTicket(request); ResponseBaseViewModel <CancelTraGrabTicketResponseViewModel> v = new ResponseBaseViewModel <CancelTraGrabTicketResponseViewModel> { Flag = new ResponseCodeViewModel() { Code = 0, MojoryToken = this.GetToken() }, Data = responseViewModel }; return(v); }