Beispiel #1
0
        public AdminServices()
        {
            loginModel = new LoginModel();
            loginBal = new LoginBAL();
            tLoginData = new TLoginData();

            _serializer = new JavaScriptSerializer();

            userMangementModel = new UserManagementModel();
            userManagementBAL = new UserManagementBAL();
            tuserMangementData = new TUserManagementData();


        }
Beispiel #2
0
        public TUserManagementData createUser(string data)
        {
            try
            {
                userMangementModel = _serializer.Deserialize<UserManagementModel>(data);
                tuserMangementData = userManagementBAL.createUser(userMangementModel);
                return tuserMangementData;
            }
            catch (Exception exp)
            {
                tuserMangementData.ErrorCode = ErrorCodes.SERVICE_ERROR;
                tuserMangementData.ErrorMessage = "createUser:" + exp.InnerException.ToString();
                return tuserMangementData;
            }

        }