Table of Contents

Method ToggleListingAsync

Namespace
UsluzionicaServer.Services
Assembly
UsluzionicaServer.dll

ToggleListingAsync(string, int)

Dodaje oglas u omiljene ako nije tamo, uklanja ga ako već jeste. Vraća novi status: isFavorited = true/false.

public Task<(FavoriteStatusDto?, string?)> ToggleListingAsync(string userId, int listingId)

Parameters

userId string
listingId int

Returns

Task<(FavoriteStatusDto, string)>