var x = from u in db.Appointment group u by u.VisitingDepartmentName into g select new { VisitingDepartmentName = g.Key, TotalNoofVisitors = g.Count(), // TotalNoofVisitors=g==null ? 0:g.Count(), Records = g };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)