using System.Collections.Generic; using System.Linq; using WX.CRM.IBLL.Level2; namespace WX.CRM.BLL.Level2 { public class L2_SOFT_PRODUCT_BL : IL2_SOFT_PRODUCT_Q { public List GetListL2_Soft_product() { using (var contex = new Model.Entity.crmContext()) { return contex.L2_SOFT_PRODUCT.ToList(); } } public Model.Entity.L2_SOFT_PRODUCT GetL2_Soft_product(decimal productid) { using (var contex = new Model.Entity.crmContext()) { return contex.L2_SOFT_PRODUCT.Where(p => p.PRODUCTID == productid).FirstOrDefault(); } } } }