Exemple #1
0
        // POST: api/Login
        public bool Post([FromBody] Bob cust)
        {
            EmployeeWebLogin loginattempt = new EmployeeWebLogin();

            loginattempt.UserName = cust.UserName;
            loginattempt.Password = cust.Password;
            bool response = loginattempt.Login();

            return(response);
        }
Exemple #2
0
        // POST: api/Login
        public bool Post([FromBody] EmployeeWebLogin user)
        {
            //EmployeeWebLogin loginattempt = new EmployeeWebLogin
            //{
            //    UserName = user.UserName,
            //    Password = user.Password
            //};
            //bool response = loginattempt.Login();
            bool response = user.Login();

            return(response);
        }