Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteRate(long id, long movieId)
        {
            var token = HttpContext.User.FindFirst(ClaimTypes.Hash).Value;
            await rateFacade.DeleteRateAsync(token, id);

            return(RedirectToAction(nameof(Detail), new { ID = movieId, page = 1 }));
        }
Ejemplo n.º 2
0
 public async Task DeleteRate(long ID)
 {
     await _rateFacade.DeleteRateAsync(HttpContext.User.FindFirst(ClaimTypes.Hash).Value, ID);
 }