public static bool UpdateEmployee(LTS.Employee employee) { bool completed = false; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.UpdateEmployee(employee.Activated, employee.CellNo, employee.Email, employee.EmpAddress, employee.IDno, employee.IsAdmin, employee.Name, employee.Pass, employee.Salary, employee.Surname, employee.Username, employee.EmpID); completed = true; } } catch (Exception ex) { completed = false; } return(completed); }