public void food_delete(int ID) { food.Delete(ID); Insert_food_GridView.DataBind(); Update_food_GridView.DataBind(); Delete_food_GridView.DataBind(); }
public food food_insert() { food.clients_served = Convert.ToInt32(Insert_clients_served_txt.Text); food.food_voucher_number = Convert.ToInt32(Insert_food_voucher_number_txt.Text); food.date_issued = Convert.ToDateTime(Insert_date_issued_txt.Text); food.Product_id = Convert.ToInt32(Insert_Product_id_txt.Text); food = food.Insert(food); Insert_food_GridView.DataBind(); Update_food_GridView.DataBind(); Delete_food_GridView.DataBind(); return(food); }
public food food_update(int ID) { food = food.Select(ID); food.food_voucher_id = Convert.ToInt32(Update_food_voucher_id_txt.Text); food.clients_served = Convert.ToInt32(Update_clients_served_txt.Text); food.food_voucher_number = Convert.ToInt32(Update_food_voucher_number_txt.Text); food.date_issued = Convert.ToDateTime(Update_date_issued_txt.Text); food.Product_id = Convert.ToInt32(Update_Product_id_txt.Text); food.Update(food); Insert_food_GridView.DataBind(); Update_food_GridView.DataBind(); Delete_food_GridView.DataBind(); return(food); }