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 TLoginData validateUser(IModel model)
        {
            try
            {
                tloginData = loginDal.validateUser(model);
                return tloginData;
            }

            catch (Exception exp)
            {
                tloginData.ErrorCode = "BUSINESS_LOGIC_ERROR";
                tloginData.ErrorMessage = "validateUser: " + exp.InnerException;
                return tloginData;
            }
        }
Beispiel #3
0
        public TLoginData validateUser(string data)
        {
            try
            {
                loginModel = _serializer.Deserialize<LoginModel>(data);
                tLoginData = loginBal.validateUser(loginModel);

                return tLoginData;

            }
            catch (Exception exp)
            {
                tLoginData.ErrorCode = ErrorCodes.SERVICE_ERROR;
                tLoginData.ErrorMessage = "validateUser: " + exp.InnerException.ToString();
                return tLoginData;
            }
        }
Beispiel #4
0
   public LoginDAL()
   {
       _dataContext = new MDKDBMLDataContext();
       tLoginData = new TLoginData();
 
   }
Beispiel #5
0
 public LoginBAL()
 {
     loginDal = new LoginDAL();
     loginModel = new LoginModel();
     tloginData = new TLoginData();
 }