public void Hours_delete(int ID) { Hours.Delete(ID); Insert_Hours_GridView.DataBind(); Update_Hours_GridView.DataBind(); Delete_Hours_GridView.DataBind(); }
public Hours Hours_insert() { Hours.Hours_Worked = Convert.ToInt32(Insert_Hours_Worked_txt.Text); Hours = Hours.Insert(Hours); Insert_Hours_GridView.DataBind(); Update_Hours_GridView.DataBind(); Delete_Hours_GridView.DataBind(); return(Hours); }
public Hours Hours_update(int ID) { Hours = Hours.Select(ID); Hours.Hours_ID = Convert.ToInt32(Update_Hours_ID_txt.Text); Hours.Hours_Worked = Convert.ToInt32(Update_Hours_Worked_txt.Text); Hours.Update(Hours); Insert_Hours_GridView.DataBind(); Update_Hours_GridView.DataBind(); Delete_Hours_GridView.DataBind(); return(Hours); }