mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
15 lines
334 B
C#
15 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; }
|
|||
|
}
|
|||
|
}
|