Skip to content

Instantly share code, notes, and snippets.

@tusmester
Created February 8, 2018 12:49
Show Gist options
  • Save tusmester/51409b5a4fa087238d56a933e1f36503 to your computer and use it in GitHub Desktop.
Save tusmester/51409b5a4fa087238d56a933e1f36503 to your computer and use it in GitHub Desktop.
#sn #mvc #controller #dashboard
using System.Web.Mvc;
using SnWebApplication.Models;
namespace SnWebApplication.Controllers
{
public class DashboardController : Controller
{
public string SitePath { get; } = "/Root/Sites/Default_Site";
public string TaskListName { get; } = "Tasks";
public string TaskListPath => SitePath + "/" + TaskListName;
// GET: Dashboard
public ActionResult Index()
{
return View(new DashboardViewModel());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment