Beispiel #1
0
        public IActionResult Create([FromBody] UpdateHistory item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            item.Id = db.GetSequence <UpdateHistory>();
            db.InsertData <UpdateHistory>(item);

            return(Ok(new { id = item.Id }));
        }
        public IActionResult Create([FromBody] DeviceIdentity item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            item.Id = db.GetSequence <DeviceIdentity>();
            db.InsertData <DeviceIdentity>(item);

            return(Ok(new { id = item.Id }));
        }
Beispiel #3
0
        public IActionResult Create([FromBody] BackupInfo item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            item.Id = db.GetSequence <BackupInfo>();
            db.InsertData <BackupInfo>(item);

            return(Ok(new { id = item.Id }));
        }