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