I'm using ABP's AsyncCrudAppService
in my AppServices. Here's my interface:
public interface IAssetRequisitionAppService : IAsyncCrudAppService
<AssetRequisitionDto, Guid, GetAllInput, AssetRequisitionDto, AssetRequisitionDto, AssetRequisitionDetailsDto>
{ }
And the service:
public class AssetRequisitionAppService : AsyncCrudAppService
<AssetRequisition, AssetRequisitionDto, Guid, GetAllInput, AssetRequisitionDto, AssetRequisitionDto, AssetRequisitionDetailsDto>,
IAssetRequisitionAppService
{
public AssetRequisitionAppService(IRepository<AssetRequisition, Guid> repository) : base(repository)
{ }
}
Now, I believe all these standard CRUD methods will return the default type (which is AssetRequisitionDto
in my case). But, what I want to do is to return a different type for Get()
and GetAll()
methods.
Get()
should have a much more detailed DTO with subproperties of the Navigation props. But GetAll()
should have a much less detailed one just to populate a table.
Is there a way to override the return types in some way?