I have a method that gives me the groupID of users and then I want to get the news based on the user\'s GroupID.
public IEnumerable Getnews(int G
Getnews returns a collection of news items, and your line is expecting a single news item.
You could try
News news = newsServices.Getnews(GroupID).FirstOrDefault();
or expect an ineumerable
IEnumerable news = newsService.GetNews(GroupID);