public async Task <IActionResult> DeleteConfirmed(int id) { var timeEntity = await _timeRepository.GetAsync(x => x.Id == id); await _timeRepository.DeleteAsync(timeEntity); return(RedirectToAction(nameof(Index))); }
public async Task <bool> Delete(Guid id) { return(await _repository.DeleteAsync(id)); }