StableVersion4.3/HL_FristAidPlatform_Bussiness/Base/T_Base_PostCodeBLL.cs

64 lines
1.9 KiB
C#

using HL_FristAidPlatform_DataBase;
using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_IDataBase;
using HL_FristAidPlatform_Models;
namespace HL_FristAidPlatform_Bussiness
{
public class T_Base_PostCodeBLL
{
private IT_Base_PostCode IService = new T_Base_PostCodeDB();
public MessageModel<T_Base_PostCode> Add(T_Base_PostCode postCode)
{
if (IService.Add(postCode))
{
return new MessageModel<T_Base_PostCode> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PostCode> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Base_PostCode> Dels(dynamic[] guids)
{
if (IService.Dels(guids))
{
return new MessageModel<T_Base_PostCode> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PostCode> { Success = false, Msg = "操作失败" };
}
}
public T_Base_PostCode Get(string guid)
{
return IService.Get(guid);
}
public TableModel<T_Base_PostCode> GetPageList(int pageIndex, int pageSize)
{
return IService.GetPageList(pageIndex, pageSize);
}
public TableModel<T_Base_PostCode> GetList()
{
return IService.GetList();
}
public MessageModel<T_Base_PostCode> Update(T_Base_PostCode postCode)
{
if (IService.Update(postCode))
{
return new MessageModel<T_Base_PostCode> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PostCode> { Success = false, Msg = "操作失败" };
}
}
}
}