using RMDataManagerLibrary.Internal.DataAccess; using RMDataManagerLibrary.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RMDataManagerLibrary.DataAcccess { public class ProductData { public List GetProducts() { SqlDataAccess sql = new SqlDataAccess(); var output = sql.LoadData("dbo.spProductGetAll", new { }, "RMData"); return output; } public ProductModel GetProductById(int productId) { SqlDataAccess sql = new SqlDataAccess(); var output = sql.LoadData("dbo.spProductGetById", new {Id = productId}, "RMData").FirstOrDefault(); return output; } } }