コード例 #1
0
        public APIReturn _Del([FromForm] string[] ids)
        {
            int affrows = 0;

            foreach (string id in ids)
            {
                string[] vs = id.Split(',');
                affrows += Shop_franchising.Delete(uint.Parse(vs[0]), uint.Parse(vs[1]));
            }
            if (affrows > 0)
            {
                return(APIReturn.成功.SetMessage($"删除成功,影响行数:{affrows}"));
            }
            return(APIReturn.失败);
        }
コード例 #2
0
 public int UnflagFranchising(uint?Franchising_id) => Shop_franchising.Delete(Franchising_id.Value, this.Id.Value);
コード例 #3
0
 public int UnflagShop(uint?Shop_id) => Shop_franchising.Delete(this.Id.Value, Shop_id.Value);