Example #1
0
    public SCT_AuthUser authenticateUser(string UserId, string UserPwd)
    {
        logger.Info("Method : authenticateUser Start");
        logger.DebugFormat("Input parameter Id : {0} ", UserId);
        logger.DebugFormat("Input parameter Password : {0} ", UserPwd);

        try
        {
            SCT_AuthUser result = new SCT_AuthUser();
            SCTInterface authUsr_SI = new SCTInterface();
            result = authUsr_SI.authenticateUser_SI(UserId, UserPwd);

            logger.Info("Method : authenticateUser Stop");

            return result;
        }
        catch (Exception ex)
        {
            webServiceExHandling.ExceptionLog(ex);
            //string mailBody = string.Format(SCT_Constants.mail_BodyFormat, System.DateTime.Now.ToString("F"), PReqNo, ex.TargetSite.ToString(), ex.ToString());
            //webServiceExHandling.Send_Email(SCT_Constants.Email_Dic, mailBody);

            SCT_AuthUser Error = new SCT_AuthUser();
            Error.StatusFlag = 1;
            Error.Message = SCT_Constants.Error;

            logger.Debug("Return object Error : ErrorCode = " + Error.StatusFlag.ToString());
            logger.Debug("Return object Error : ErrorMessage = " + Error.Message);
            logger.Error("Method : searchEmployee Stop");

            return Error;
        }
    }