public Response <string> Post(AuthorizationKeyRequest request)
 {
     try
     {
         string key = AuthorizationDAL.GetAuthorizationKey(request.HardwareID, request.ApplicationID, request.LicenseKey);
         return(new Response <string>(true, key));
     }
     catch (Exception ex)
     {
         return(new Response <string>(ex.Message));
     }
 }
 /// <summary>
 /// Gets the authorization key associated with the hardware ID given a valid license key for an
 /// application ID
 /// </summary>
 /// <param name="hardwareID">Identifier belonging to one of the hardware components</param>
 /// <param name="applicationID">Identifier associated with the application</param>
 /// <param name="licenseKey">License key issued during registration</param>
 /// <returns>
 /// String that represents and authorization key if license key and application ID are valid,
 /// string.empty otherwise
 /// </returns>
 public string GetAuthorizationKey(string hardwareID, Guid applicationID, string licenseKey)
 {
     return(AuthorizationDAL.GetAuthorizationKey(hardwareID, applicationID, licenseKey));
 }