I am expecting a large amount of data to be displayed in the grid and used paging. I tried to use the Kendo.Mvc.Extensions ToDataSourceResult method but don't want to expose my context in the controller. Is there any way to achieve this?
3 Answers, 1 is accepted
answered on 02 May 2018, 11:35 AM
I would recommend you to use a Service Layer. In other words create a separate classes called "services". Put them in different class library (or namespace) project and make them independent on MVC framework infrastructure.
You will find a sample which demonstrates the usage of a Service Layer in the link below: