public virtual void Update(LicenseRecord licenseRecord)
        {
            if (licenseRecord == null)
                throw new ArgumentNullException("licenseRecord");

            _licRepository.Update(licenseRecord);
        }  
 public void Delete(LicenseRecord licenseRecord)
 {
     if (licenseRecord == null)
     {
         throw new ArgumentNullException("licenseRecord");
     }
     this._licRepository.Delete(licenseRecord);
 }
 public string AddLicenseKey(string licenseKey)
 {
     LicenseRecord key = new LicenseRecord
     {
         LicenseKey = licenseKey
     };
     _licenseService.Insert(key);
     return ("<tr id=\"LicenseRow_" + key.Id.ToString() + "\"><td>" + _licenseService.GetLicenseType(licenseKey) + "</td><td>" + _licenseService.GetLicenseHost(licenseKey) + "</td><td>" + licenseKey + "</td><td class=\"delete\"><a class=\"delkey\" id=\"DeleteKey_" + key.Id.ToString() + "\" data-id=\"" + key.Id.ToString() + "\">Delete</a></td></tr>");
 }