74 lines
1.9 KiB
C#
74 lines
1.9 KiB
C#
using Learun.Util;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Learun.Application.AppMagager
|
||
{
|
||
/// <summary>
|
||
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
|
||
/// Copyright (c) 2013-2018 Hexagon PPM
|
||
/// 创 建:超级管理员
|
||
/// 日 期:2018-06-26 10:32
|
||
/// 描 述:我的常用移动应用
|
||
/// </summary>
|
||
public class MyFunctionBLL: MyFunctionIBLL
|
||
{
|
||
private MyFunctionService myFunctionService = new MyFunctionService();
|
||
#region 获取数据
|
||
|
||
/// <summary>
|
||
/// 获取列表数据
|
||
/// </summary>
|
||
/// <param name="userId">用户主键ID</param>
|
||
/// <returns></returns>
|
||
public IEnumerable<MyFunctionEntity> GetList(string userId)
|
||
{
|
||
try
|
||
{
|
||
return myFunctionService.GetList(userId);
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
if (ex is ExceptionEx)
|
||
{
|
||
throw;
|
||
}
|
||
else
|
||
{
|
||
throw ExceptionEx.ThrowBusinessException(ex);
|
||
}
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 提交数据
|
||
/// <summary>
|
||
/// 保存实体数据(新增、修改)
|
||
/// <param name="keyValue">主键</param>
|
||
/// <summary>
|
||
/// <returns></returns>
|
||
public void SaveEntity(string userId, string strFunctionId)
|
||
{
|
||
try
|
||
{
|
||
myFunctionService.SaveEntity(userId, strFunctionId);
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
if (ex is ExceptionEx)
|
||
{
|
||
throw;
|
||
}
|
||
else
|
||
{
|
||
throw ExceptionEx.ThrowServiceException(ex);
|
||
}
|
||
}
|
||
}
|
||
#endregion
|
||
}
|
||
}
|