public ActionResult Delete(Auction auction) { AuctionService service = new AuctionService(); service.DeleteAuction(auction); return(RedirectToAction("Index")); }
public ActionResult Delete(Auction auction) { auctionService.DeleteAuction(auction); return(RedirectToAction("Listing")); }
public ActionResult Delete(tbl_Auction auction) { service.DeleteAuction(auction); return(View(auction)); }
public void DeleteAuction(int auctionId) { AuctionService auctionService = new AuctionService(); auctionService.DeleteAuction(auctionId); }
// Delete public void DeleteAuction(int id) { IUseAuctionService aus = new AuctionService(); aus.DeleteAuction(id); }