public LicensesDTO GetAllLicense() { try { return(new LicensesDTO { Licenses = _licenseRepository.GetAllLicenses() }); } catch (Exception ex) { throw new Exception("Error while getting all license : " + ex.StackTrace); } }
public List <License> GetAllLicenses() { return(repository.GetAllLicenses()); }