public async Task <IActionResult> DeleteConfirmed(Guid id) { var roomType = await _hotelService.GetItemByIdAsync(id); await _hotelService.DeleteItemAsync(roomType); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> DeleteConfirmed(string id) { var feature = await _hotelService.GetItemByIdAsync(id); await _hotelService.DeleteItemAsync(feature); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> DeleteConfirmed(string id) { var room = await _RoomService.GetItemByIdAsync(id); await _RoomService.DeleteItemAsync(room); return(RedirectToAction(nameof(Index))); }