Пример #1
0
        public List <Student_SearchSelect_Result> SearchStudent(string searchName = "", int GradId = 0)
        {
            if (searchName == "Empty")
            {
                searchName = null;
            }
            if (GradId == 0)
            {
                return(db.tsp_Student_SearchSelect(searchName, null).ToList());
            }

            return(db.tsp_Student_SearchSelect(searchName, GradId).ToList());
        }