Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "junelee"

this is my service:

public interface IRoleAppService : IApplicationService
    {
        List<TestDto> Test(TestInputDto name);
    }

public class RoleAppService : TravellerAppServiceBase, IRoleAppService
    {
        public List<TestDto> Test(TestInputDto input)
        {
            return new List<TestDto> {new TestDto {Id = 1, Name = input.Name}};
        }
    }

this is the dto

public class TestInputDto : EntityRequestInput
    {
        public string Name { get; set; }
    }
     public class TestDto:EntityDto
    {
        public string Name { get; set; }
    }

when i use this dynamic web api, an error occurred. { "success": false, "result": null, "error": { "code": 0, "message": "对不起,在处理您的请求期间,产生了一个服务器内部错误!(Sorry, during the processing of your request, a server internal error has occurred!)", "details": null, "validationErrors": null }, "unAuthorizedRequest": false }

Can you help me to fix it? thx

Showing 1 to 1 of 1 entries