public bool UpdateWorkShopById(tbl_WorkShop Wp, int WorkShopId) { //if (Wp.WorkShopDate > DateTime.Now) //{ WD.UpdateWorkShopById(Wp, WorkShopId); return(true); //} //else //{ // return false; //} }
public bool UpdateWorkShopById(tbl_WorkShop Wp, int WorkShopId) { WorkShopDb WD = new WorkShopDb(); if (Wp.WorkShopDate > DateTime.Now) { WD.UpdateWorkShopById(Wp, WorkShopId); return(true); } else { return(false); } }