Example #1
0
        public ActionResult Search(string search, string filter)
        {
            List <Association> associations = new List <Association>();

            if (!String.IsNullOrEmpty(search))
            {
                associations = associationData.getAssociationsByFilter(search, filter);
            }
            return(View(associations));
        }
Example #2
0
        public ActionResult Search(string search, string filter, int loginUser)
        {
            LoginData          loginData    = new LoginData();
            List <Association> associations = new List <Association>();
            LoginUser          User         = employeeData.getLoginUser(loginUser);

            this.ViewBag.User   = User.NameLogin;
            this.ViewBag.Permit = loginData.getPermitEmployee(loginUser);
            this.ViewBag.Id     = loginUser;

            if (!String.IsNullOrEmpty(search))
            {
                associations = associationData.getAssociationsByFilter(search, filter);
            }
            return(View(associations));
        }