Base solution for your next web application
Open Closed

FullCalendar #8809


User avatar
0
rvanwoezik created

Hi guys, i hope you are doing fine and everybody is still healthy!

I want to use the fullcalendar from primeng https://primefaces.org/primeng/showcase/#/fullcalendar

I have an ApplicationAppService with CalendarEvents

To load data in the fullcalendar, fullcalendar needs an simple array "data": [ { "id": 1, "title": "All Day Event", "start": "2017-02-01" }, { "id": 2, "title": "Long Event", "start": "2017-02-07", "end": "2017-02-10" }, { "id": 3, "title": "Repeating Event", "start": "2017-02-09T16:00:00" }, //...

My question is can i return an simple array from my applicationservice "CalendarEventAppService" or should i use an mvc controller to return JSON?

I'm using ASP.NET CORE & Angular (single solution) .NET Core 3.1 8.5


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rvanwoezik,

    Thanks, everybody is fine at the moment. I hope you are too.

    For your question, yes you can return such data from your app service. Just use [DontWrapResult] attribute for your app service method, so this will remove ABP's additional wrapping around the result object.