mirror of
https://github.com/CommonLoon102/NBloodServerSupervisor.git
synced 2024-12-23 19:22:45 +01:00
23 lines
636 B
C#
23 lines
636 B
C#
using Common;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
|
|
namespace WebInterface
|
|
{
|
|
public class PrivateViewModel
|
|
{
|
|
[Required]
|
|
[Display(Name = "Required players")]
|
|
public int Players { get; set; }
|
|
[Required]
|
|
[Display(Name = "Select mod")]
|
|
public string ModName { get; set; }
|
|
public List<SelectListItem> ModNames { get; } = Constants.SupportedMods
|
|
.Select(m => new SelectListItem(m.Value.FriendlyName, m.Value.Name))
|
|
.ToList();
|
|
}
|
|
}
|