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.失败); }
public int UnflagFranchising(uint?Franchising_id) => Shop_franchising.Delete(Franchising_id.Value, this.Id.Value);
public int UnflagShop(uint?Shop_id) => Shop_franchising.Delete(this.Id.Value, Shop_id.Value);