Commit b37efb2d authored by 黄奎's avatar 黄奎
parents e7334e99 4d2f9ff9
......@@ -319,11 +319,12 @@ namespace Mall.WebApi.Controllers.Reserve
public ApiResult GetGenderEnumList()
{
var list = EnumHelper.GetEnumList(typeof(GenderEnum));
return ApiResult.Success("", list.Select(x => new
var resultList = list.Select(x => new
{
Name = x.Key,
Id = Convert.ToInt32(x.Value)
}));
});
return ApiResult.Success("", resultList.OrderBy(x => x.Id));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment