0
rahulbpatel created
How are parameters bound from the dynamic Web API layer to application service? Do we have to use DTOs for all input/output values or is it possible to use asimple types? I've defined an application service method as so:
Task<ListDto> GetByName(string name);
I'm trying to invoke it in AngularJS with the following call:
listAppService.getByName({name: 'States'})
This is resulting in the following error response:
{"success":false,"result":null,"error":{"code":0,"message":"Your request is not valid!","details":null,"validationErrors":[{"message":"name is null!","members":["name"]}]},"unAuthorizedRequest":false}