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