I Have a holiday list in
HolidayMasterBusiness holidaymasterBusiness = new HolidayMasterBusiness();
List<HolidayMasterModel> holidayList = holidaymasterBusiness.GetHolidayMasterList(Model.CompanyId);
Now in my form I want to show this holidayList data (which contains holidayName,Date) in my Calendear on form for which I use Java Script
document.addEventListener('DOMContentLoaded', function () { var calendarEl = document.getElementById('cal'); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: ['dayGrid'], eventSources: [{ color: '#2BDE51', textColor: '#ffffff', events: [ { "title": "H", "start": "2022-06-01", "end": "2022-06-01" }, { "title": "H", "start": "2022-06-02", "end": "2019-06-02" }] }] }); calendar.render(); }); Here
{ "title": "H", "start": "2022-06-01", "end": "2022-06-01" },
{ "title": "H", "start": "2022-06-02", "end": "2019-06-02" }] is dummy data.How Can I show data of holidaylist above from database.