Пример #1
0
 public Admin GetAdminById(Guid userId)
 {
     return(Admins
            .Include(u => u.Role)
            .Include(u => u.Licensees)
            .Include(u => u.AllowedBrands)
            .Include(u => u.BrandFilterSelections)
            .Include(u => u.Currencies)
            .SingleOrDefault(u => u.Id == userId));
 }