59 lines
1.8 KiB
C#
59 lines
1.8 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_QuestionClassBLL
|
|
{
|
|
private IT_Base_QuestionClass IService = new T_Base_QuestionClassDB();
|
|
|
|
public MessageModel<T_Base_QuestionClass> Add(T_Base_QuestionClass entity)
|
|
{
|
|
if (IService.Add(entity))
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public MessageModel<T_Base_QuestionClass> Dels(dynamic[] ids)
|
|
{
|
|
if (IService.Dels(ids))
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public T_Base_QuestionClass Get(long id)
|
|
{
|
|
return IService.Get(id);
|
|
}
|
|
|
|
public TableModel<T_Base_QuestionClass> GetPageList(int pageIndex, int pageSize)
|
|
{
|
|
return IService.GetPageList(pageIndex, pageSize);
|
|
}
|
|
|
|
public MessageModel<T_Base_QuestionClass> Update(T_Base_QuestionClass entity)
|
|
{
|
|
if (IService.Update(entity))
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_QuestionClass> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
}
|
|
}
|