EmailCategoryBLL.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using LeaRun.Application.Entity.PublicInfoManage;
  2. using LeaRun.Application.IService.PublicInfoManage;
  3. using LeaRun.Application.Service.PublicInfoManage;
  4. using System;
  5. using System.Collections.Generic;
  6. namespace LeaRun.Application.Busines.PublicInfoManage
  7. {
  8. /// <summary>
  9. /// 版 本 6.1
  10. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  11. /// 创建人:佘赐雄
  12. /// 日 期:2015.12.8 11:31
  13. /// 描 述:邮件分类
  14. /// </summary>
  15. public class EmailCategoryBLL
  16. {
  17. private IEmailCategoryService service = new EmailCategoryService();
  18. #region 获取数据
  19. /// <summary>
  20. /// 分类列表
  21. /// </summary>
  22. /// <param name="UserId">用户Id</param>
  23. /// <returns></returns>
  24. public IEnumerable<EmailCategoryEntity> GetList(string UserId)
  25. {
  26. return service.GetList(UserId);
  27. }
  28. /// <summary>
  29. /// 分类实体
  30. /// </summary>
  31. /// <param name="keyValue">主键值</param>
  32. /// <returns></returns>
  33. public EmailCategoryEntity GetEntity(string keyValue)
  34. {
  35. return service.GetEntity(keyValue);
  36. }
  37. #endregion
  38. #region 提交数据
  39. /// <summary>
  40. /// 删除分类
  41. /// </summary>
  42. /// <param name="keyValue">主键</param>
  43. public void RemoveForm(string keyValue)
  44. {
  45. try
  46. {
  47. service.RemoveForm(keyValue);
  48. }
  49. catch (Exception)
  50. {
  51. throw;
  52. }
  53. }
  54. /// <summary>
  55. /// 保存分类表单(新增、修改)
  56. /// </summary>
  57. /// <param name="keyValue">主键值</param>
  58. /// <param name="emailCategoryEntity">分类实体</param>
  59. /// <returns></returns>
  60. public void SaveForm(string keyValue, EmailCategoryEntity emailCategoryEntity)
  61. {
  62. try
  63. {
  64. service.SaveForm(keyValue, emailCategoryEntity);
  65. }
  66. catch (Exception)
  67. {
  68. throw;
  69. }
  70. }
  71. #endregion
  72. }
  73. }