using HL_FristAidPlatform_DataBase; using HL_FristAidPlatform_Help; using HL_FristAidPlatform_IDataBase; using HL_FristAidPlatform_Models; namespace HL_FristAidPlatform_Bussiness { public class T_Base_CountyBLL { private IT_Base_County IService = new T_Base_CountyDB(); public MessageModel Add(T_Base_County county) { if (IService.Add(county)) { return new MessageModel { Success = true, Msg = "操作成功" }; } else { return new MessageModel { Success = false, Msg = "操作失败" }; } } public MessageModel Dels(dynamic[] guids) { if (IService.Dels(guids)) { return new MessageModel { Success = true, Msg = "操作成功" }; } else { return new MessageModel { Success = false, Msg = "操作失败" }; } } public MessageModel Update(T_Base_County county) { if (IService.Update(county)) { return new MessageModel { Success = true, Msg = "操作成功" }; } else { return new MessageModel { Success = false, Msg = "操作失败" }; } } public T_Base_County Get(string guid) { return IService.Get(guid); } public TableModel GetPageList(int pageIndex, int pageSize) { return IService.GetPageList(pageIndex, pageSize); } public ProvinceCityCounty GetAllList() { return IService.GetAllList(); } /// /// 获取列表-无分页 /// /// 所属市级代码 /// public TableModel GetList(string cityCode) { return IService.GetList(cityCode); } /// /// 获取当前辖区下的县/区 /// /// 起始页 /// 每页大小 /// 所属市级代码 /// 关键词 /// public TableModel GetPageListByCityCode(int pageIndex, int pageSize, string cityCode, string keyWord) { return IService.GetPageListByCityCode(pageIndex, pageSize, cityCode, keyWord); } } }