public async Task <IActionResult> Delete(string id) { var image = await _hotelService.GetItemByIdAsync(id); await _hotelService.RemoveImageAsync(image); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> Delete(string id) { var image = await _hotelService.GetItemByIdAsync(id); await _hotelService.RemoveImageAsync(image); return(RedirectToAction(nameof(Index))); }