64 lines
1.9 KiB
C#
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_EducationBLL
|
|
{
|
|
private IT_Base_Education IService = new T_Base_EducationDB();
|
|
|
|
public MessageModel<T_Base_Education> Add(T_Base_Education education)
|
|
{
|
|
if (IService.Add(education))
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public MessageModel<T_Base_Education> Dels(dynamic[] ids)
|
|
{
|
|
if (IService.Dels(ids))
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public T_Base_Education Get(int id)
|
|
{
|
|
return IService.Get(id);
|
|
}
|
|
|
|
public TableModel<T_Base_Education> GetPageList(int pageIndex, int pageSize)
|
|
{
|
|
return IService.GetPageList(pageIndex, pageSize);
|
|
}
|
|
|
|
public TableModel<T_Base_Education> GetList()
|
|
{
|
|
return IService.GetList();
|
|
}
|
|
|
|
public MessageModel<T_Base_Education> Update(T_Base_Education education)
|
|
{
|
|
if (IService.Update(education))
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_Education> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
}
|
|
}
|