Mineplex2018-withcommit/Website/LOC.Website.Web/Areas/Manage/Controllers/PaymentsController.cs
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

25 lines
697 B
C#

namespace LOC.Website.Web.Areas.Manage.Controllers
{
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web.Mvc;
using Common.Contexts;
using Core.Model.Sales;
public class PaymentsController : ManageControllerBase
{
private LocContext context = new LocContext();
public ActionResult Index()
{
return View(context.Set<Transaction>().Include(x => x.SalesPackage).Include(x => x.Account).ToList());
}
public ViewResult Details(int dayOfYear)
{
return View(context.Transactions.Where(x => x.Time.DayOfYear == dayOfYear).ToList());
}
}
}