예제 #1
0
        public IActionResult AddFavourite(int userId, int articleId)
        {
            UserContext context = HttpContext.RequestServices.GetService(typeof(UserContext)) as UserContext;

            return(Ok(context.AddFavourite(userId, articleId)));
        }