Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public async Task DeleteItemById(int ItemId) => await ItemDAO.DeleteById(ItemId);