コード例 #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var timeEntity = await _timeRepository.GetAsync(x => x.Id == id);

            await _timeRepository.DeleteAsync(timeEntity);

            return(RedirectToAction(nameof(Index)));
        }
コード例 #2
0
 public async Task <bool> Delete(Guid id)
 {
     return(await _repository.DeleteAsync(id));
 }