Ejemplo n.º 1
0
 // Controller READ
 #region READ
 public ActionResult Index(string search)
 {
     if (search != null)
     {
         ViewModelManager  viewModel = new ViewModelManager();
         List <RoomEntity> temp      = viewModel.RoomGetListByTag(search);
         if (temp.Count > 0)
         {
             return(View(viewModel.RoomGetListByTag(search)));
         }
         else
         {
             return(View());
         }
     }
     else
     {
         return(View(RoomManager.GetList()));
     }
     //RepositoryRoom repositoryRoom = new RepositoryRoom();
 }