using LeaRun.Application.Entity.PublicInfoManage;
using LeaRun.Application.IService.PublicInfoManage;
using LeaRun.Application.Service.PublicInfoManage;
using System;
using System.Collections.Generic;
namespace LeaRun.Application.Busines.PublicInfoManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.12.8 11:31
/// 描 述:邮件分类
///
public class EmailCategoryBLL
{
private IEmailCategoryService service = new EmailCategoryService();
#region 获取数据
///
/// 分类列表
///
/// 用户Id
///
public IEnumerable GetList(string UserId)
{
return service.GetList(UserId);
}
///
/// 分类实体
///
/// 主键值
///
public EmailCategoryEntity GetEntity(string keyValue)
{
return service.GetEntity(keyValue);
}
#endregion
#region 提交数据
///
/// 删除分类
///
/// 主键
public void RemoveForm(string keyValue)
{
try
{
service.RemoveForm(keyValue);
}
catch (Exception)
{
throw;
}
}
///
/// 保存分类表单(新增、修改)
///
/// 主键值
/// 分类实体
///
public void SaveForm(string keyValue, EmailCategoryEntity emailCategoryEntity)
{
try
{
service.SaveForm(keyValue, emailCategoryEntity);
}
catch (Exception)
{
throw;
}
}
#endregion
}
}