57d2ab60a7
Created and binded a View, created logic behind Cart Product Model
23 lines
545 B
C#
23 lines
545 B
C#
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<ProductModel> GetProducts()
|
|
{
|
|
SqlDataAccess sql = new SqlDataAccess();
|
|
|
|
var output = sql.LoadData<ProductModel, dynamic>("dbo.spProductGetAll", new { }, "RMData");
|
|
|
|
return output;
|
|
}
|
|
}
|
|
}
|