Example #1
0
        /// <summary>
        /// 检查拼团状态
        /// </summary>
        /// <param name="inputDTO"></param>
        /// <returns></returns>
        public ResultDTO <CheckDiyGroupOutputDTO> CheckDiyGroupExt(CheckDiyGroupInputDTO inputDTO)
        {
            if (inputDTO == null)
            {
                throw new ArgumentNullException();
            }

            var isCompleted = DiyGroup.ObjectSet().Any(any => any.Id == inputDTO.DiyGroupId && any.State > 1);

            var outputDTO = new ResultDTO <CheckDiyGroupOutputDTO>
            {
                isSuccess  = true,
                ResultCode = 0,
                Data       = new CheckDiyGroupOutputDTO
                {
                    IsCompleted = isCompleted
                }
            };

            return(outputDTO);
        }
Example #2
0
 /// <summary>
 /// 检查拼团状态
 /// </summary>
 /// <param name="inputDTO"></param>
 /// <returns></returns>
 public Deploy.CustomDTO.ResultDTO <CheckDiyGroupOutputDTO> CheckDiyGroup(CheckDiyGroupInputDTO inputDTO)
 {
     base.Do(false);
     return(this.CheckDiyGroupExt(inputDTO));
 }
Example #3
0
 /// <summary>
 /// 检查拼团状态
 /// </summary>
 /// <param name="inputDTO"></param>
 /// <returns></returns>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO <CheckDiyGroupOutputDTO> CheckDiyGroup(CheckDiyGroupInputDTO inputDTO)
 {
     base.Do();
     return(this.Command.CheckDiyGroup(inputDTO));
 }