public bool UpdateCraft(T_Crafts craft) { using (MEMSEntities db = new MEMSEntities()) { db.Entry(craft).State = EntityState.Modified; return db.SaveChanges() > 0 ? true : false; } }
public bool DeleteCraft(T_Crafts craft) { try { ph = new ProductHelper(); return ph.DeleteCraft(craft); } catch (Exception ex) { throw ex; } }