public bool CheckConnection()
        {
            var objUser = new ServiceUsers();

            // WriteToLog("CheckConnection!!!! ");
            return(objUser.CheckConnection());
        }
        public Users ManageUsers(Users user)
        {
            var objUser = new ServiceUsers();

            //WriteToLog("Method Name: " + user.Method);
            //WriteToLog("TestGit: " + user.Method);

            switch (user.Method)
            {
            case "Insert":
                objUser.Insert(user);
                break;

            case "Update":
                objUser.UpdateUser(user);
                break;

            case "Delete":
                objUser.DeleteUser(user);
                break;

            case "CheckUser":
                user.isBool = objUser.CheckUser(user);
                break;

            case "fillDropDown":
                user.list = objUser.GetAllToFillDropDown();
                break;

            case "getPermission":
                user.Permission = objUser.GetPermission(user);
                break;

            case "CheckConnection":
                user.isBool = objUser.CheckConnection();
                break;

            case "CheckUserId":
                user.isBool = objUser.CheckUserId(user);
                break;
            }
            return(user);
        }