public async Task <IActionResult> AddFavorite(int propertyId) { var userId = User.GetUserId(); if (await _favouriteService.FavouriteExists(userId, propertyId)) { var userFavourite = await _favouriteService.GetFavourite(userId, propertyId); _favouriteService.RemoveFavourite(userFavourite); return(Ok(_response.Ok("The property has been removed from your favourite list"))); } var favourite = await _favouriteService.AddFavourite(userId, propertyId); return(Ok(_response.Ok(favourite))); }