Table of Contents

Method ToggleProviderAsync

Namespace
UsluzionicaServer.Services
Assembly
UsluzionicaServer.dll

ToggleProviderAsync(string, int)

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

public Task<(FavoriteStatusDto?, string?)> ToggleProviderAsync(string userId, int providerProfileId)

Parameters

userId string
providerProfileId int

Returns

Task<(FavoriteStatusDto, string)>