Пример #1
0
        public async Task <IActionResult> InsertFavourite([FromBody] AddFavouriteVM AddFavourite)
        {
            AddFavourite.UserId = User.Claims.First(c => c.Type == "UserID").Value;
            await _service.InsertFavourite(AddFavourite);

            return(Ok(new { successMessage = "Success" }));
        }