IHttpActionResult错误的请求ASP.NET Web API

时间:2018-11-07 13:54:01

标签: asp.net asp.net-web-api

这两个语句等效吗?

var userLogsList = new List<User>() { new User() {Id = "1234", Name= "Dummy User"}}; var mapperMock = new Mock<IMapper>(); mapperMock.Setup(m => m.Map<List<UserEntity>, IList<User>>(It.IsAny<List<UserEntity>>())) .Returns(userLogsList);

return StatusCode(HttpStatusCode.BadRequest);

0 个答案:

没有答案