I have created two classes under the Models folder inside an ASP.NET MVC:-

```
namespace TMS.Models
{

    public class ADIntigration
{
    public static DomainContext GetUserDetails()
    {
        using (PrincipalContext pc = new PrincipalContext(ContextType.Domain))
        {
            IPrincipal principal = HttpContext.Current.User;
            WindowsIdentity identity = ((WindowsIdentity)principal.Identity);
            UserPrincipal user = UserPrincipal.FindByIdentity(pc, identity.Name);

            if (principal != null)
            {
                return new DomainContext() {
                    userGuid = user.Guid,
                    DisplayName = user.DisplayName,
                    GivenName = user.GivenName,
                    EmailAddress = user.EmailAddress
                };
            }
        }

        return null;
    }
}
}

```

& 

```
namespace TMS.Models
{
    class DomainContext
    {
        public class domainContext
        {
            public Nullable<Guid> userGuid { get; set; }
            public string DisplayName { get; set; }
            public string GivenName { get; set; }
            public string EmailAddress { get; set; }
        }
    }
}

```

but I am getting a build error that :-

> 
> Inconsistent accessibility: return type 'project.Models.DomainContext'
>  is less accessible than method
>  'project.Models.ADIntigration.GetUserDetails()'
> 
> 
> 

So how I can solve this problem ?