よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
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" })); }