Commit 4d2f9ff9 authored by 吴春's avatar 吴春

提交代码

parent 2190128a
......@@ -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