public void Resource_delete(int ID)
 {
     Resource.Delete(ID);
     Insert_Resource_GridView.DataBind();
     Update_Resource_GridView.DataBind();
     Delete_Resource_GridView.DataBind();
 }
 public Resource Resource_insert()
 {
     Resource.Resource_Type_ID = Convert.ToInt32(Insert_Resource_Type_ID_txt.Text);
     Resource.Description      = Insert_Description_txt.Text;
     Resource.Address          = Insert_Address_txt.Text;
     Resource.City             = Insert_City_txt.Text;
     Resource.State            = Insert_State_txt.Text;
     Resource.Zip Code = Insert_Zip Code_txt.Text;
     Resource.PayType           = Insert_PayType_txt.Text;
     Resource.PayRate           = Convert.ToDecimal(Insert_PayRate_txt.Text);
     Resource.AvailabilityDate  = Convert.ToDateTime(Insert_AvailabilityDate_txt.Text);
     Resource.AvailabilityHours = Convert.ToDateTime(Insert_AvailabilityHours_txt.Text);
     Resource = Resource.Insert(Resource);
     Insert_Resource_GridView.DataBind();
     Update_Resource_GridView.DataBind();
     Delete_Resource_GridView.DataBind();
     return(Resource);
 }
 public Resource Resource_update(int ID)
 {
     Resource                  = Resource.Select(ID);
     Resource.Resource_ID      = Convert.ToInt32(Update_Resource_ID_txt.Text);
     Resource.Resource_Type_ID = Convert.ToInt32(Update_Resource_Type_ID_txt.Text);
     Resource.Description      = Update_Description_txt.Text;
     Resource.Address          = Update_Address_txt.Text;
     Resource.City             = Update_City_txt.Text;
     Resource.State            = Update_State_txt.Text;
     Resource.Zip Code = Update_Zip Code_txt.Text;
     Resource.PayType           = Update_PayType_txt.Text;
     Resource.PayRate           = Convert.ToDecimal(Update_PayRate_txt.Text);
     Resource.AvailabilityDate  = Convert.ToDateTime(Update_AvailabilityDate_txt.Text);
     Resource.AvailabilityHours = Convert.ToDateTime(Update_AvailabilityHours_txt.Text);
     Resource.Update(Resource);
     Insert_Resource_GridView.DataBind();
     Update_Resource_GridView.DataBind();
     Delete_Resource_GridView.DataBind();
     return(Resource);
 }