public void campaign_delete(int ID) { campaign.Delete(ID); Insert_campaign_GridView.DataBind(); Update_campaign_GridView.DataBind(); Delete_campaign_GridView.DataBind(); }
public campaign campaign_insert() { campaign.campaign_name = Insert_campaign_name_txt.Text; campaign.campaign_start_date = Convert.ToDateTime(Insert_campaign_start_date_txt.Text); campaign.campaign_end_date = Convert.ToDateTime(Insert_campaign_end_date_txt.Text); campaign = campaign.Insert(campaign); Insert_campaign_GridView.DataBind(); Update_campaign_GridView.DataBind(); Delete_campaign_GridView.DataBind(); return(campaign); }
public campaign campaign_update(int ID) { campaign = campaign.Select(ID); campaign.campaign_id = Convert.ToInt32(Update_campaign_id_txt.Text); campaign.campaign_name = Update_campaign_name_txt.Text; campaign.campaign_start_date = Convert.ToDateTime(Update_campaign_start_date_txt.Text); campaign.campaign_end_date = Convert.ToDateTime(Update_campaign_end_date_txt.Text); campaign.Update(campaign); Insert_campaign_GridView.DataBind(); Update_campaign_GridView.DataBind(); Delete_campaign_GridView.DataBind(); return(campaign); }