public Task <IActionResult> UnLike(int catId) { var command = new SetCatLikedCommand() { CatId = catId }; return(_apiResponseHelper.RunCommandAsync(this, command)); }
public async Task <JsonResult> UnLike(int catId) { var command = new SetCatLikedCommand() { CatId = catId }; return(await _apiResponseHelper.RunCommandAsync(command)); }
public Task <IActionResult> Like(int catId) { var command = new SetCatLikedCommand() { CatId = catId, IsLiked = true }; // IApiResponseHelper will validate the command and permissions before executing it // and return any validation errors in a formatted data object return(_apiResponseHelper.RunCommandAsync(this, command)); }