public ActionResult DeleteItem(int itemId) { itemDAO.DeleteById(itemId); var urlBuilder = new System.UriBuilder(Request.Url.AbsoluteUri) { Path = Url.Action("ViewAuctionDetails", "Auction"), Query = Request["auctionId"] }; Uri uri = urlBuilder.Uri; uri = new Uri(uri.ToString().Replace("?", "/")); return(Redirect(uri.AbsoluteUri)); }
public async Task DeleteItemById(int ItemId) => await ItemDAO.DeleteById(ItemId);