public IHttpActionResult AddVideoLike(int customerVideoId) { if (_workContext.CurrentCustomer.IsGuest()) { return(Json(new { redirect = Url.RouteUrl("Login", null) })); } _customerVideoAlbumService.AddVideoLike(customerVideoId, _workContext.CurrentCustomer.Id); return(Json(new { Success = true })); }
public ActionResult AddVideoLike(int customerVideoId) { if (_workContext.CurrentCustomer.IsGuest()) { return(Json(new { redirect = Url.RouteUrl("Login") }, JsonRequestBehavior.AllowGet)); } _customerVideoAlbumService.AddVideoLike(customerVideoId, _workContext.CurrentCustomer.Id); return(Json(null)); }