public string SelectMemberShip(int flag) { string str = string.Empty; if (Session["admin"] != "" || Session["admin"].ToString() != null) { PropMemberShipPlan propMemberShip = new PropMemberShipPlan(); propMemberShip.status = flag; BllMemberShip objMemberShip = new BllMemberShip(); str = objMemberShip.RecordSelect(propMemberShip); return(str); } else { return("Error in Authentication"); } }
public string InsertMemberShip(string MemberShipP, float duration, float cost) { string str = string.Empty; if (Session["admin"] != "" || Session["admin"].ToString() != null) { PropMemberShipPlan propcat = new PropMemberShipPlan(); propcat.planName = MemberShipP; propcat.duration = duration; propcat.cost = cost; BllMemberShip objMemberShip = new BllMemberShip(); str = objMemberShip.RecordInsert(propcat, Session["admin"].ToString()); return(str); } else { return("Error in Authentication"); } }
public string UpdateMemberShip(string Name, float duration, float cost, int ID) { string str = string.Empty; if (Session["admin"] != "" || Session["admin"].ToString() != null) { PropMemberShipPlan propMemberShip = new PropMemberShipPlan(); propMemberShip.planName = Name; propMemberShip.duration = duration; propMemberShip.cost = cost; propMemberShip.membershipID = ID; BllMemberShip objMemberShip = new BllMemberShip(); str = objMemberShip.RecordUpdate(propMemberShip, Session["admin"].ToString()); return(str); } else { return("Error in Authentication"); } }