public void saveLicence(string name, Competition comp) { var result = new License(); result.Type = name; result.Competition = comp; _licenseRepository.AddLicense(result); }
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); } }