mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-10 05:36:57 +00:00
28 lines
654 B
C#
28 lines
654 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ElectronNET.API;
|
|
using ElectronNET.API.Entities;
|
|
|
|
namespace ElectronNET.WebApp.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public IActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public IActionResult SayHello()
|
|
{
|
|
App.CreateNotification(new NotificationOptions {
|
|
Title = "Hallo Robert",
|
|
Body = "Nachricht von ASP.NET Core App"
|
|
});
|
|
|
|
return RedirectToAction("Index");
|
|
}
|
|
}
|
|
} |