示例#1
0
        public IActionResult Put([FromBody] TcoinstallLog license)
        {
            var newLicense = _repository.UpdateInstalledLicense(license);

            if (newLicense == null)
            {
                return(NotFound());
            }

            _repository.Save();

            return(Ok(newLicense));
        }
示例#2
0
        public TcoinstallLog UpdateInstalledLicense(TcoinstallLog newLicense)
        {
            _context.TcoinstallLog.Update(newLicense);

            return(newLicense);
        }