2018-02-21 20:29:23 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2018-04-08 02:44:42 -04:00
|
|
|
|
using SharedLibraryCore.Dtos;
|
2018-02-21 20:29:23 -05:00
|
|
|
|
|
|
|
|
|
namespace WebfrontCore.Controllers
|
|
|
|
|
{
|
2018-03-06 02:22:19 -05:00
|
|
|
|
public class HomeController : BaseController
|
2018-02-21 20:29:23 -05:00
|
|
|
|
{
|
|
|
|
|
public IActionResult Index()
|
|
|
|
|
{
|
2018-03-13 17:30:22 -04:00
|
|
|
|
ViewBag.Description = "IW4MAdmin is a complete server administration tool for IW4x.";
|
2018-02-22 01:06:21 -05:00
|
|
|
|
ViewBag.Title = "Server Overview";
|
2018-03-13 17:30:22 -04:00
|
|
|
|
ViewBag.Keywords = "IW4MAdmin, server, administration, IW4x, MW2, Modern Warfare 2";
|
|
|
|
|
|
2018-02-21 20:29:23 -05:00
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IActionResult Error()
|
|
|
|
|
{
|
2018-04-04 15:38:34 -04:00
|
|
|
|
ViewBag.Description = "IW4MAdmin encountered an error";
|
2018-03-13 17:30:22 -04:00
|
|
|
|
ViewBag.Title = "Error!";
|
|
|
|
|
return View();
|
2018-02-21 20:29:23 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|