public List<tbl> SerchNewsByTitle(string title, int groupid)
{
try
{
var result = from n in tbl
where n.GroupId == groupid && n.Title.Contains(title)
select n;
if (groupid== -1)
{
result = from n in tbl select n;
}
return result.ToList();
}
catch (Exception e)
{
AddExceptionData(e);
return null;
}
}