示例#1
0
 public async Task DeleteResult(ResultsForViewDto result)
 {
     try
     {
         var deletedResult = await _apiService.DeleteJsonAsync <ResultsForViewDto>(_url, new { Id = result.Id });
     }
     catch
     {
         _notification.Error("Something went wrong");
     }
 }
示例#2
0
 public async Task <ResultsForViewDto> UpdateResult(ResultsForViewDto result)
 {
     return(await _apiService.PutJsonAsync <ResultsForViewDto>(_url, result));
 }