techgarage-ir.MTWireGuard/UI/Models/Requests/ChangeStateRequest.cs
2023-06-28 18:01:39 +03:30

13 lines
342 B
C#

using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
namespace MTWireGuard.Models.Requests
{
public class ChangeStateRequest
{
[FromQuery(Name = "ID"), Required]
public int Id { get; set; }
[FromQuery(Name = "IsEnabled"), Required]
public bool Enabled { get; set; }
}
}