public async Task <IActionResult> DeleteConfirmed(Guid id) { if (id == null) { return(NotFound()); } await _repository.Delete(id); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> OnPostAsync(Guid?id) { if (id == null) { return(NotFound()); } await _repository.Delete(id); return(RedirectToPage("./Index")); }
public void DeletePlane(int id) { _planeRepository.Delete(_planeRepository.GetById(id)); SavePlane(); }
public void DeletePlaneById(int id) { planeRepo.Delete(id); }