public ActionResult DeleteBeer(DeleteBeer b, int brewId, string beername, int beerId) { b.BreweryId = brewId; b.Name = beername; b.BeerId = beerId; _brew.DeleteBeer(b); return(Redirect("DeleteBeer")); }
public ActionResult DeleteBeer(int beerId) { DeleteBeer b = new DeleteBeer(); b.BeerId = beerId; _brew.DeleteBeer(b); return(Json(new { data = true })); //return Redirect("DeleteBeer"); }