Exemple #1
0
 public async Task EditExpense(TransactionDto dto)
 {
     await RestService.PostAsync <object>(Constants.EditExpenseUri, dto);
 }
Exemple #2
0
 public async Task <IncomeDto> AddExpenseAsync(TransactionDto dto)
 {
     return(await RestService.PostAsync <IncomeDto>(Constants.AddExpenseUri, dto));
 }
Exemple #3
0
        public async Task LoginAsync(LoginDto loginDto, Action navigateAsync)
        {
            await SetTokenAsync(await RestService.PostAsync <TokenDto>(Constants.GetTokenUri, loginDto, false));

            navigateAsync();
        }
Exemple #4
0
 public async Task ChangePasswordAsync(PasswordChangeDto dto)
 {
     await RestService.PostAsync <object>(Constants.ChangePasswordUri, dto);
 }
Exemple #5
0
 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));
 }