Forum-Inzynieria1/Trunk/Server/Forum/MailSender/Controllers/DefaultController.cs

21 lines
573 B
C#
Raw Normal View History

2018-12-18 15:42:39 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
namespace MailSender.Controllers
{
[RoutePrefix("def")]
public class DefaultController : Controller
{
[HttpGet]
public ActionResult Index()
{
2018-12-19 13:50:49 +01:00
//var model = JsonConvert.SerializeObject(new Models.MailModel() { Content = "DDD", EMailTo = "ddd@o2.pl", Subject = "LLLLLL" });
//TempData.Add("mailModel", model);
2018-12-18 15:42:39 +01:00
return RedirectToAction("Index", "Home");
}
}
}