public bool BookAppointment(string email, int rowid) { UserAppointmentRepository _appservice = new UserAppointmentRepository(System.Configuration.ConfigurationManager.ConnectionStrings["DbConnection"].ConnectionString); bool status = _appservice.BookAppointment(email, rowid); return(status); }
public IEnumerable <UserAppointments> GetAppointmentsByDocID(int docid) { UserAppointmentRepository _appservice = new UserAppointmentRepository(System.Configuration.ConfigurationManager.ConnectionStrings["DbConnection"].ConnectionString); IEnumerable <UserAppointments> _appointments = _appservice.GetByDocID(docid); return(_appointments); }