Beispiel #1
0
        async public Task <APIReturn> _Del([FromForm] int[] id)
        {
            var dels = new List <object>();

            foreach (int id2 in id)
            {
                dels.Add(await Tb_alltype.DeleteAsync(id2));
            }
            if (dels.Count > 0)
            {
                return(APIReturn.成功.SetMessage($"删除成功,影响行数:{dels.Count}").SetData("dels", dels));
            }
            return(APIReturn.失败);
        }