Пример #1
0
        //http://ganetest.qsrtime.net/api/sync/add-transaction-file
        public IHttpActionResult AddAccountTransactionFileSync(AccountTransactionFileSync model)
        {
            var serialNumber = model.SerialNumber.Trim().ToLower();

            var terminal = TerminalServices.GetTerminalBySerial(serialNumber);

            if (terminal == null)
            {
                return(Unauthorized());
            }
            var result = _accountServices.AddAccountTransactionFile(model, terminal.TenantId);

            return(Ok(result));
        }