Exemple #1
0
        public CreateSessionOut CreateSession(CreateSessionIn input)
        {
            CreateSessionOut output = new CreateSessionOut()
            {
                result = Entities.Common.Result.Error
            };

            using (var dataContext = DataContextHelper.GetDataContext <AuthenticationDataContext>())
            {
                var linqResult = dataContext.spr_createSession(input.sessionId, input.userId);
                if (linqResult == 1)
                {
                    output.result = SystemManagement.Entities.Common.Result.Success;
                }
            }
            return(output);
        }
        public CreateSessionOut CreateSession(CreateSessionIn input)
        {
            var authentication = new SystemManagement.DataAccess.Authentication.Authentication();

            return(authentication.CreateSession(input));
        }