示例#1
0
        public void saveLicence(string name, Competition comp)
        {
            var result = new License();

            result.Type        = name;
            result.Competition = comp;

            _licenseRepository.AddLicense(result);
        }
示例#2
0
 public bool SaveLicence(LicensesDTO licenses)
 {
     try
     {
         var result = _licenseRepository.AddLicense(licenses.Licenses.ToList());
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception("Error while saving license : " + ex.StackTrace);
     }
 }