/// <summary> /// displays delete view /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <IActionResult> Delete(int id) { if (id == null) { return(NotFound()); } var hotel = await _context.DeleteOne(id); if (hotel == null) { return(NotFound()); } return(View(hotel)); }