MDTTransactionInfo IUserLoginService.Login(UserLogin userLogin)
        {
            try
            {
                return(_service.Login(userLogin));
            }
            catch (Exception ex)
            {
                Logger Log = new Logger();
                Log.WriteErrorLog(ex.Message + "<br/>" + Environment.NewLine + "StackTrace :" + ex.StackTrace +
                                  "" + Environment.NewLine);
                Log.WriteErrorLog(Environment.NewLine + "-----------------------------------------------------------------------------" + Environment.NewLine);

                return(null);//new MDTTransactionInfo { msgCode = MessageCode.Failed, message = ex.Message, status = HttpStatusCode.InternalServerError };
            }
        }
Exemple #2
0
        public MDTTransactionInfo Login(UserLogin userLogin)
        {
            UserAccountConcrete _service = new UserAccountConcrete();
            Logger Log = new Logger();

            try
            {
                Log.WriteErrorLog("I: " + "<br/>" + Environment.NewLine + "Logged in with user :"******"" + Environment.NewLine);
                Log.WriteErrorLog(Environment.NewLine + "-----------------------------------------------------------------------------" + Environment.NewLine);

                return(_service.Login(userLogin));
            }
            catch (Exception ex)
            {
                Log.WriteErrorLog(ex.Message + "<br/>" + Environment.NewLine + "StackTrace :" + ex.StackTrace +
                                  "" + Environment.NewLine);
                Log.WriteErrorLog(Environment.NewLine + "-----------------------------------------------------------------------------" + Environment.NewLine);

                return(new MDTTransactionInfo {
                    msgCode = MessageCode.Failed, message = ex.Message, status = HttpStatusCode.InternalServerError
                });
            }
        }