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