mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 06:39:27 +02:00
Update Models
This commit is contained in:
parent
0dad0d1a04
commit
c36204dbb9
27 changed files with 509 additions and 5 deletions
22
Application/Models/Responses/ToastResult.cs
Normal file
22
Application/Models/Responses/ToastResult.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MTWireGuard.Application.Models.Models.Responses
|
||||
{
|
||||
public class ToastResult : IActionResult
|
||||
{
|
||||
private readonly ToastMessage _result;
|
||||
|
||||
public ToastResult(ToastMessage message)
|
||||
{
|
||||
_result = message;
|
||||
}
|
||||
|
||||
public async Task ExecuteResultAsync(ActionContext context)
|
||||
{
|
||||
var objectResult = new ObjectResult(_result);
|
||||
|
||||
await objectResult.ExecuteResultAsync(context);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue