33 lines
823 B
C#
33 lines
823 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using WX.CRM.IBLL.Base;
|
|
|
|
namespace WX.CRM.BLL.Base
|
|
{
|
|
public class BAS_PROVINCE_BL : IBAS_PROVINCE_Q
|
|
{
|
|
#region 获取全部信息
|
|
/// <summary>
|
|
/// 获取全部信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public List<WX.CRM.Model.Entity.BAS_PROVINCE> GetList()
|
|
{
|
|
using (var db = new WX.CRM.Model.Entity.crmContext())
|
|
{
|
|
return db.BAS_PROVINCE.ToList();
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
public WX.CRM.Model.Entity.BAS_PROVINCE GetProvince(decimal id)
|
|
{
|
|
using (var db = new WX.CRM.Model.Entity.crmContext())
|
|
{
|
|
return db.BAS_PROVINCE.FirstOrDefault(p => p.ID == id);
|
|
}
|
|
}
|
|
}
|
|
}
|