public static void UpdateEmployeeInfo(NorthwindEmployee ne) { bool retval = ne.Save(); if (!retval) { throw new NorthwindDataException("UpdateEmployee failed."); } }
public static void InsertNewEmployee(NorthwindEmployee ne) { bool retval = ne.Save(); if (!retval) { throw new NorthwindDataException("InsertNewEmployee failed."); } }