public async Task <IHttpActionResult> CompleteMarketJobRequest(MarketJobSync request) { request.SerialNumber = request.SerialNumber.Trim().ToLower(); var terminal = TerminalServices.GetTerminalBySerial(request.SerialNumber); if (terminal == null) { return(Unauthorized()); } var TransactionLog = TerminalServices.CheckTransactionLog(request.TransactionLogId, terminal.TerminalId); if (TransactionLog == true) { return(Conflict()); } var result = await _marketServices.CompleteMarketJob(request.MarketJobId, request.UserId, terminal.TenantId, request.Comment, terminal.TermainlSerial, request.Latitude, request.Longitude); return(Ok(result)); }