public Guid? GetApplicationKey(Guid projectKey, string name)
{
using (var context = GetDataContext())
{
var application = context.Applications.SingleOrDefault(x => x.Project.ProjectKey == projectKey && x.Name == name);
return application?.ApplicationKey;
}
}