using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MEH.Month.Test.IDAL;
using MEH.Month.Test.Factory;
using MEH.Month.Test.Model;
using System.Linq.Expressions;
namespace MEH.Month.Test.BLL
{
public class CommonBLL:ICommon
{
static ICommon dal = SumFactory.GetFactory().CreateCommonDal();
public int Add(ProductInfo m)
{
return dal.Add(m);
}
public int Del(int ID)
{
return dal.Del(ID);
}
public int Dels(string IDs)
{
return dal.Dels(IDs);
}
public ProductInfo Fill(int ID)
{
return dal.Fill(ID);
}
public List<ProductInfo> Show( Expression<Func<ProductInfo, bool>> Where)
{
return dal.Show( Where);
}
public int Update(ProductInfo m)
{
return dal.Update(m);
}
public int UpdateState(int ID, int State)
{
return dal.UpdateState(ID, State);
}
}
}