private void BindFitnessClass() { int fitnessClassId = Request.QueryString["FitnessClassId"].ToInt(); if (fitnessClassId > 0) { FitnessClass personLookup = FitnessClassDAL.GetItem(fitnessClassId); if (personLookup != null) { lblFitnessClassId.Text = personLookup.FitnessClassId.ToString(); lblFitnessClassName.Text = personLookup.FitnessClassName; lblDescription.Text = personLookup.Description; } else lblMessage.Text = "Fitness Class could not be found."; } else lblMessage.Text = "Invalid ID. Fitness Class record could not be found."; }
private void BindFitnessClass() { int fitnessClassId = Request.QueryString["FitnessClassId"].ToInt(); if (fitnessClassId > 0) { FitnessClass fitnessClassLookup = FitnessClassDAL.GetItem(fitnessClassId); if (fitnessClassLookup != null) { lblFitnessClassId.Text = fitnessClassLookup.FitnessClassId.ToString(); lblFitnessClassName.Text = fitnessClassLookup.FitnessClassName; } else { lblMessage.Text = "Instructor could not be found."; } } else { lblMessage.Text = "Invalid Id. Instructor record could not be found."; } }
public static FitnessClass GetItem(int fitnessClassId) { return(FitnessClassDAL.GetItem(fitnessClassId)); }