コード例 #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());
 }