datatables.aspnet icon indicating copy to clipboard operation
datatables.aspnet copied to clipboard

Failing to work with application/business layer

Open vdurante opened this issue 7 years ago • 5 comments

I am developing an application that uses ASP.NET Boilerplate framework. By default, there is an application layer that maps my appservices as controllers in the Web layer.

In the web layer, I have added services.RegisterDataTables();.

In the application layer, I am trying to get as input IDataTablesRequest, but I get input is null error.

Thanks in advance

vdurante avatar Mar 28 '17 22:03 vdurante

+1

Same issue here.

We are using AspNetBoilerplate - www.aspnetboilerplate.com

And when using IDataTablesRequest, its always null

Bruno

brunobertechini avatar May 30 '17 15:05 brunobertechini

Copy and paste this code https://github.com/ALMMa/datatables.aspnet/blob/master/src/DataTables.AspNet.AspNetCore/DataTablesRequest.cs as a public class in your project. It will work as expected.

On Tue, May 30, 2017 at 12:40 PM, Bruno Bertechini <[email protected]

wrote:

+1

Same issue here.

We are using AspNetBoilerplate - www.aspnetboilerplate.com

And when using IDataTablesRequest, its always null

Bruno

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ALMMa/datatables.aspnet/issues/52#issuecomment-304919509, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJqkK5sQYCl0AZJ-vik6eo4jiDf2G5Wks5r_Dh0gaJpZM4MsQW0 .

vdurante avatar May 30 '17 17:05 vdurante

I'll keep this open to review this issue when possible. I'll try to make DataTables.AspNet work with AspNet Boilerplate without manual ajustments, if possible.

ALMMa avatar Jun 20 '17 19:06 ALMMa

@vdurante can you show me what code need to make it works?

sajasbana avatar Apr 21 '18 15:04 sajasbana

This was quite some time ago, but I copied this class into my project and just switched it from internal to public https://github.com/ALMMa/datatables.aspnet/blob/master/src/DataTables.AspNet.AspNetCore/DataTablesRequest.cs

On Apr 21, 2018 12:05 PM, "sajasbana" [email protected] wrote:

@vdurante https://github.com/vdurante can you show me what code need to make it works?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/ALMMa/datatables.aspnet/issues/52#issuecomment-383303672, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJqkLmZKkkSL7dahmwIvqK5U9NIn5jRks5tq0q9gaJpZM4MsQW0 .

vdurante avatar Apr 21 '18 16:04 vdurante