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

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