Exemplo n.º 1
0
        public static string GetReporterEmail(this IFeedbackIssue issue)
        {
            if (issue.ReporterID > 0)
            {
                var client = ServiceProvider.Current.Data.Client.GetClient(issue.ClientID);
                if (client != null)
                {
                    if (!client.PrimaryOrg)
                    {
                        var primary = ServiceProvider.Current.Data.Client.GetPrimary(client.ClientID);
                        if (primary != null)
                        {
                            return(primary.Email);
                        }
                        else
                        {
                            return(string.Empty);
                        }
                    }
                    else
                    {
                        return(client.Email);
                    }
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        public static string GetReporterName(this IFeedbackIssue issue)
        {
            if (issue.ReporterID > 0)
            {
                var client = ServiceProvider.Current.Data.Client.GetClient(issue.ClientID);
                if (client != null)
                {
                    return(Clients.GetDisplayName(client.LName, client.FName));
                }
            }

            return(null);
        }
Exemplo n.º 3
0
        public static string GetClientName(this IFeedbackIssue issue)
        {
            if (issue.ClientID > 0)
            {
                var client = ServiceProvider.Current.Data.Client.GetClient(issue.ClientID);
                if (client != null)
                {
                    return(client.DisplayName);
                }
            }

            return(null);
        }