mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 14:28:09 +02:00
14 lines
334 B
C#
14 lines
334 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MTWireGuard.Application.Models.Requests
|
|
{
|
|
public class ChangeStateRequest
|
|
{
|
|
[FromRoute(Name = "id"), Required]
|
|
public int Id { get; set; }
|
|
|
|
[FromBody, Required]
|
|
public bool Enabled { get; set; }
|
|
}
|
|
}
|