initial commit

This commit is contained in:
2026-07-21 13:38:38 +07:00
commit 5047288f04
777 changed files with 57255 additions and 0 deletions
@@ -0,0 +1,32 @@
using Indotalent.ConfigBackEnd.Interfaces;
using Indotalent.ConfigFrontEnd.Common;
using Indotalent.Features.Utilities.BookingScheduler.Cqrs;
using Indotalent.Infrastructure.Authentication.Identity;
using Indotalent.Shared.Models;
using Microsoft.AspNetCore.Components;
using MudBlazor;
using RestSharp;
namespace Indotalent.Features.Utilities.BookingScheduler;
public class BookingSchedulerService : BaseService
{
private readonly RestClient _client;
public BookingSchedulerService(
IHttpClientFactory clientFactory,
NavigationManager nav,
ISnackbar snackbar,
ICurrentUserService currentUserService,
TokenProvider tokenProvider)
: base(clientFactory, nav, snackbar, currentUserService, tokenProvider)
{
_client = new RestClient(nav.BaseUri);
}
public async Task<ApiResponse<List<GetBookingSchedulerListResponse>>?> GetBookingSchedulerListAsync()
{
var request = new RestRequest("api/booking-scheduler", Method.Get);
return await ExecuteWithResponseAsync<List<GetBookingSchedulerListResponse>>(_client, request);
}
}