public JsonResult DeleteFavorite(long shopId) { _iShopService.CancelConcernShops(shopId, CurrentUser.Id); return(Json(new Result { success = true, msg = "成功取消关注该微店." })); }
public JsonResult CancelConcernShops(string ids) { var list = ids.Split(',').Select(p => long.Parse(p)).ToList(); _iShopService.CancelConcernShops(list, CurrentUser.Id); return(Json(new Result() { success = true, msg = "取消成功!" })); }
public JsonResult CancelConcernShops(string ids) { var strArr = ids.Split(','); List <long> listid = new List <long>(); foreach (var arr in strArr) { listid.Add(Convert.ToInt64(arr)); } _iShopService.CancelConcernShops(listid, CurrentUser.Id); return(Json(new Result() { success = true, msg = "取消成功!" })); }