コード例 #1
0
ファイル: BaseService.cs プロジェクト: yfbTeam/Ecampus
        /// <summary>
        /// 批量伪删除数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public virtual JsonModel DeleteBatchFalse(int isenable, params string[] ids)
        {
            JsonModel jsonModel = null;

            try
            {
                int result = CurrentDal.DeleteBatchFalse(CurrentEntity, isenable, ids);

                jsonModel = new JsonModel()
                {
                    errNum  = 0,
                    errMsg  = "success",
                    retData = result
                };
                return(jsonModel);
            }
            catch (Exception ex)
            {
                jsonModel = new JsonModel()
                {
                    errNum  = 400,
                    errMsg  = ex.Message,
                    retData = ""
                };
                return(jsonModel);
            }
        }