Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 545.7k

List of Records

Jun 13 2023 12:13 PM

Hi

  I have below code . In GroupCollection value is Group 2A , Group 2A(i) . I want to list all those records from Database which have Group value Group 2A , Group 2A(i) . I am tryng like below but not working

public List<Group> GetMentorList(string Group)
        {
            List<Group> Result = (from t in context.Groups
                                             where t.IsActive == true
                                             && (Group.Contains(t.GroupID.ToString()) : 1 == 1)
                                             select t).ToList();
            return Result;
        }

Thanks


Answers (4)