public void job_delete(int ID) { job.Delete(ID); Insert_job_GridView.DataBind(); Update_job_GridView.DataBind(); Delete_job_GridView.DataBind(); }
public job job_insert() { job.address_id = Convert.ToInt32(Insert_address_id_txt.Text); job.company_id = Convert.ToInt32(Insert_company_id_txt.Text); job.job_cat_id = Convert.ToInt32(Insert_job_cat_id_txt.Text); job.job_posted_date = Convert.ToDateTime(Insert_job_posted_date_txt.Text); job.job_status = Insert_job_status_txt.Text; job.job_title = Insert_job_title_txt.Text; job.Work_Classification_Full_time = Insert_Work_Classification_Full_time_txt.Text; job.Work_Classification_Part_time = Insert_Work_Classification_Part_time_txt.Text; job.Work_Payment_Freq_Weekly = Insert_Work_Payment_Freq_Weekly_txt.Text; job.Work_Payment_Freq_Bi_Weekly = Insert_Work_Payment_Freq_Bi_Weekly_txt.Text; job.Work_Payment_Freq_Monthly = Insert_Work_Payment_Freq_Monthly_txt.Text; job.Work_Payment_Freq_Bi_Monthly = Insert_Work_Payment_Freq_Bi_Monthly_txt.Text; job = job.Insert(job); Insert_job_GridView.DataBind(); Update_job_GridView.DataBind(); Delete_job_GridView.DataBind(); return(job); }