Update Models

This commit is contained in:
Tech Garage 2024-01-25 20:36:44 +03:30
parent 0dad0d1a04
commit c36204dbb9
27 changed files with 509 additions and 5 deletions

View file

@ -0,0 +1,14 @@
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; }
}
}