public async Task <IActionResult> DeleteConfirmed(int id) { var device = await _devicesRepository.GetAsync(id); await _devicesRepository.RemoveAsync(device); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> DeleteConfirmed(int id) { var device = await _devicesRepository.GetAsync(id); await _devicesRepository.RemoveAsync(device); return(RedirectToAction(nameof(Index))); }