tests
This commit is contained in:
parent
c08ff81776
commit
6ac264fa2c
8 changed files with 42 additions and 31 deletions
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
|
@ -23,7 +20,7 @@ namespace Yavsc.Extensions
|
|||
var typeInfo = type.GetTypeInfo();
|
||||
var values = Enum.GetValues(type).Cast<Enum>();
|
||||
var items = new List<SelectListItem>();
|
||||
|
||||
|
||||
foreach (var value in values)
|
||||
{
|
||||
items.Add(new SelectListItem {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue