public async Task EditExpense(TransactionDto dto) { await RestService.PostAsync <object>(Constants.EditExpenseUri, dto); }
public async Task <IncomeDto> AddExpenseAsync(TransactionDto dto) { return(await RestService.PostAsync <IncomeDto>(Constants.AddExpenseUri, dto)); }
public async Task LoginAsync(LoginDto loginDto, Action navigateAsync) { await SetTokenAsync(await RestService.PostAsync <TokenDto>(Constants.GetTokenUri, loginDto, false)); navigateAsync(); }
public async Task ChangePasswordAsync(PasswordChangeDto dto) { await RestService.PostAsync <object>(Constants.ChangePasswordUri, dto); }
public async Task EditUser(UserEditDto dto) { await RestService.PostAsync <UserEditDto>(Constants.EditUserUri, dto); }
public async Task <PredictionResultDto> MakePrediction(ExpenseDto expense) { return(await RestService.PostAsync <PredictionResultDto>(Constants.PredictionUri, expense)); }