1
0

final update

This commit is contained in:
Labality
2021-08-19 16:35:32 +07:00
parent c2e012237f
commit f4fa1d8085
11877 changed files with 1192560 additions and 0 deletions

View File

@ -0,0 +1,29 @@
namespace LOC.Website.Web.Controllers
{
using System.Linq;
using System.Web.Mvc;
using Newtonsoft.Json;
using ViewModels;
public class StoreController : Controller
{
private readonly IStoreViewModel _storeModel;
public StoreController(IStoreViewModel storeModel)
{
_storeModel = storeModel;
}
[HttpPost]
public ActionResult GetSalesPackages()
{
var json = JsonConvert.SerializeObject(_storeModel.SalesPackages.Where(x => !x.Test).ToList());
return Content(json, "application/json");
}
public ActionResult Index()
{
return View(_storeModel.SalesPackages.Where(x => !x.Test).ToList());
}
}
}