Beispiel #1
0
        public ActionResult SearchByUsername()
        {
            SearchByUsernameModel model = new SearchByUsernameModel();

            model.UserList = new List <Domain.User.UserDO>();

            return(View(model));
        }
Beispiel #2
0
 public ActionResult SearchByUsername(SearchByUsernameModel model)
 {
     if (model.SearchKeyword.Length >= 5)
     {
         model.UserList = UserBL.SearchByLikelyUsername(model.SearchKeyword);
     }
     else
     {
         model.UserList = UserBL.SearchByExactUsername(model.SearchKeyword);
     }
     return(View(model));
 }