public IActionResult Put([FromBody] TcoinstallLog license) { var newLicense = _repository.UpdateInstalledLicense(license); if (newLicense == null) { return(NotFound()); } _repository.Save(); return(Ok(newLicense)); }
public TcoinstallLog UpdateInstalledLicense(TcoinstallLog newLicense) { _context.TcoinstallLog.Update(newLicense); return(newLicense); }