public HttpResponseMessage CreateUser(User user)
 {
     UserDataAccessLayer userDAL = new UserDataAccessLayer();
     var dynObj = new { result = userDAL.Create(user.Username, user.Pwd, user.Email) };
     HttpResponseMessage message = Request.CreateResponse(HttpStatusCode.OK, dynObj);
     return message;
 }
 public User GetUserInfo(string username, string pwd)
 {
     UserDataAccessLayer userDAL = new UserDataAccessLayer();
     return userDAL.GetUserInfo(username, pwd);
 }