public void services_delete(int ID) { services.Delete(ID); Insert_services_GridView.DataBind(); Update_services_GridView.DataBind(); Delete_services_GridView.DataBind(); }
public services services_insert() { services.Company = Insert_Company_txt.Text; services.service_type = Insert_service_type_txt.Text; services.Estimated_Time = Convert.ToDateTime(Insert_Estimated_Time_txt.Text); services.Email = Insert_Email_txt.Text; services.Phone_Number = Convert.ToInt32(Insert_Phone_Number_txt.Text); services.Full_Cost = Convert.ToInt32(Insert_Full_Cost_txt.Text); services.Estimated_Cost = Convert.ToInt32(Insert_Estimated_Cost_txt.Text); services = services.Insert(services); Insert_services_GridView.DataBind(); Update_services_GridView.DataBind(); Delete_services_GridView.DataBind(); return(services); }
public services services_update(int ID) { services = services.Select(ID); services.service_id = Convert.ToInt32(Update_service_id_txt.Text); services.Company = Update_Company_txt.Text; services.service_type = Update_service_type_txt.Text; services.Estimated_Time = Convert.ToDateTime(Update_Estimated_Time_txt.Text); services.Email = Update_Email_txt.Text; services.Phone_Number = Convert.ToInt32(Update_Phone_Number_txt.Text); services.Full_Cost = Convert.ToInt32(Update_Full_Cost_txt.Text); services.Estimated_Cost = Convert.ToInt32(Update_Estimated_Cost_txt.Text); services.Update(services); Insert_services_GridView.DataBind(); Update_services_GridView.DataBind(); Delete_services_GridView.DataBind(); return(services); }