protected void Select(object sender, GridViewDeleteEventArgs e) { String Cake_Name = ViewAllCakeAdmin.Rows[e.RowIndex].Cells[0].Text; Cake c = CakeRepositories.getCake(Cake_Name); Response.Redirect("BuyCake.aspx?cName=" + Cake_Name); }
public static Cake get(String cakeName) { return(CakeRepositories.getCake(cakeName)); }