ASP.NET BOILERPLATE: javascript to call application service

949 views Asked by At

ASP.NET BOILERPLATE: I have a table Asset for which I have created AssetApplicationService with base class CRUDAsync; I have wired up AssetController, & appropriate DTO's, I am able to retrieve data and show on the list as similar to user list. when I click on Create New Asset,I am able to bring the modal dailog as well until now it is all good, I have copied the user\index.js and tailored to call my asset application service from javascript...this is where i am struck

var _assetService = abp.services.app.asset;   //line1
var _$modal = $('#AssetCreateModal');
var _$form = _$modal.find('form');

line 1 returns me undefined when I debug through alert(_assetService), not sure why...where as abp.services.app.user, role works fine.

1

There are 1 answers

1
Alper Ebicoglu On

AssetApplicationService must be implemented by IApplicationService.

 public interface IAssetApplicationService  : IApplicationService
 {   

 }

public class AssetApplicationService : IAssetApplicationService  
{   

}
  • Note: I've replied your previous question. Please mark the answer as solution if that worked for you.