public IHttpActionResult PostAssetLog(AssetLogViewModel assetLog)
        {
            string serialNo = assetLog.piAddress.Trim().ToLower();

            Terminals terminal = TerminalServices.GetTerminalBySerial(serialNo);

            if (terminal == null)
            {
                return(Unauthorized());
            }

            int res = TerminalServices.SaveAssetLog(assetLog, terminal.TerminalId, terminal.TenantId);

            if (res > 0)
            {
                return(Ok("Success"));
            }
            else
            {
                return(BadRequest("Unable to save records"));
            }
        }