public List<sp_GetBookedTimeResult> getBookedTimes(string doctorUserId, DateTime appointmentDate) { List<sp_GetBookedTimeResult> myList = new List<sp_GetBookedTimeResult>(); try { AppointmentsDataContext obj = new AppointmentsDataContext(); myList = obj.sp_GetBookedTime(Guid.Parse(doctorUserId), appointmentDate).ToList(); } catch (Exception ex) { clsCommon.saveError(ex); } return myList; }