protected void Page_Load(object sender, EventArgs e) { var logic = new Portfolio_Logic(); if (Request["Id"] != null) { int Id = Convert.ToInt32(Request["Id"]); Response.Write(logic.DeletePortfolio(Id)); } }
protected void Page_Load(object sender, EventArgs e) { logic = new Portfolio_Logic(); Models = logic.GetPortfolio(); }