public User GetUser(string name) { //return _repository.FindSingle(); //User user = new User { Id = "111",UserName="******",Birthday=DateTime.Now}; User user = _repository.FindSingle(x => x.UserName == name, "User"); return(user); }