Hi
i have a table reservationbydate in that i have hotelid,type of room,date and noofroom.I should get the total no of rooms for aparticular date.
.how to return zero when output is null
var avaliabiltyQuery = from a in db.tbl_ReservationByDates
where a.HotelID == HotelId
&& a.RoomType == Drp_TypeOfRoom.Text
&& a.BookedDate == StartDate
group a by a.HotelID into g
select new {TotalRooms=g.Sum(a=>a.NoofBookedRooms)
};
.