示例#1
0
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids">用英文逗号隔开字符串编号组,如:"6,7,8"</param>
        /// <returns></returns>
        public async Task <Messages> DeleteByIdsAsync(IList <int> ids)
        {
            if (ids != null && ids.Count > 0)
            {
                bool result = await advertRepository.DeleteByIdsAsync(ids);

                messages.Msg     = result ? "删除成功!!" : "删除失败!!";
                messages.Success = result;
            }
            return(messages);
        }