2022-07-23 17:09:13 +02:00
|
|
|
|
using RMDataManagerLibrary.DataAcccess;
|
|
|
|
|
using RMDataManagerLibrary.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Net;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Web.Http;
|
|
|
|
|
|
|
|
|
|
namespace RMDataManager.Controllers
|
|
|
|
|
{
|
2022-08-06 16:21:52 +02:00
|
|
|
|
[Authorize(Roles = "Cashier")]
|
2022-07-23 17:09:13 +02:00
|
|
|
|
public class ProductController : ApiController
|
|
|
|
|
{
|
|
|
|
|
public List<ProductModel> Get()
|
|
|
|
|
{
|
|
|
|
|
ProductData data = new ProductData();
|
|
|
|
|
|
|
|
|
|
return data.GetProducts();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|