Exemplo n.º 1
0
        public IHttpActionResult Login(int id, string password)
        {
            EmployeeAction con   = new EmployeeAction();
            LoginInfo      login = con.getEmployeeInfo(id);

            if (login.PASSWRD == password)
            {
                return(Ok(id.ToString()));
            }
            else
            {
                return(Ok("Error"));
            }
        }