Esempio n. 1
0
        /// <summary>
        /// 获取一条数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ReturnResult <CommandInfo> GetOne(CommandInfo model)
        {
            var rst = new ReturnResult <CommandInfo>();

            using (var dal = new CommandInfoDal())
            {
                rst = dal.GetOne(model);
            }

            return(rst);
        }
Esempio n. 2
0
        public ReturnResult <bool> UpdateStatusAndResult(CommandInfo model)
        {
            var rst = new ReturnResult <bool>();

            using (var dal = new CommandInfoDal())
            {
                rst = dal.UpdateStatusAndResult(model);
            }

            return(rst);
        }
Esempio n. 3
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ReturnResult <bool> Delete(CommandInfo model)
        {
            var rst = new ReturnResult <bool>();

            using (var dal = new CommandInfoDal())
            {
                rst = dal.Delete(model);
            }

            return(rst);
        }
Esempio n. 4
0
        /// <summary>
        /// 新增多条数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ReturnResult <bool> AddList(List <CommandInfo> list)
        {
            var rst = new ReturnResult <bool>();

            using (var dal = new CommandInfoDal())
            {
                rst = dal.AddList(list);
            }

            return(rst);
        }