techgarage-ir.MTWireGuard/Application/Models/Requests/ChangeStateRequest.cs
2024-01-25 20:36:44 +03:30

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; }
}
}