Ejemplo n.º 1
0
        public VRequestInfo DeleteNavigationImgPlays(VSlideshowSwitchInput input)
        {
            var list = playInfoRepository.GetModelByIdList(input.Ids.ToArray());

            if (list.Count == input.Ids.Count)
            {
                var res = playInfoRepository.DeleteImgPlaysAsync(input.Ids);
                if (res.Result)
                {
                    return(VRequestInfo.SuccessResult("删除完成"));
                }
                else
                {
                    return(VRequestInfo.ErrorResult("删除失败"));
                }
            }
            return(VRequestInfo.ErrorResult("无效操作"));
        }