using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Warehouse.Models.mesModel;
using Warehouse.Models.mesMysqlModel;
using JHReport.DAL;

namespace Warehouse.DAL.Report
{
    public class InventoryDal
    {
        public List<dynamic> Inventory(string locationname,string name)
        {
            using (var context = new mesModel())
            {
                ReportDal report = new ReportDal();
                string sql =report.InventorySql(locationname,name);
                 var res = context.DynamicListFromSql(sql, null);
                return res.ToList();
            }
        }
    }
}