public bool UpdateUser(string login, int userId, WacsTimeKeepingUser user)
        {
            var my = getUserByLogin(login);

            var existingUser = db.Users
                .Where(p => p.DepartmentId == my.DepartmentId && p.Id == userId)
                .FirstOrDefault();

            if (existingUser == null)
            {
                return false;
            }

            return db.UpdateUser(user);
        }
 public WacsTimeKeepingUser AddUser(WacsTimeKeepingUser newUser) {
     throw new NotImplementedException();
 }
        public WacsTimeKeepingUser AddUser(string login, WacsTimeKeepingUser postedUser)
        {
            if(postedUser.Id != 0)
            {
                return null;
            }

            var my = getUserByLogin(login);

            var newUser = new WacsTimeKeepingUser
            {
                Id = 0,
                Login = postedUser.Login,
                DisplayName = postedUser.DisplayName,
                DepartmentId = my.DepartmentId, 
                IsDepartmentAdmin = false
            };
            return db.AddUser(newUser);
        }
 public bool UpdateUser(WacsTimeKeepingUser updatedUser) {
     throw new NotImplementedException();
 }