コード例 #1
0
        public List <EmployeeModel> Get(string name, string textfield)
        {
            List <EmployeeModel> list = new List <EmployeeModel>();

            if (textfield.ToLower().Equals("searchByName".ToLower()))
            {
                list = employeeRepo.GetAllEmployeesByName(name);
            }
            else if (textfield.ToLower().Equals("searchBySurName".ToLower()))
            {
                list = employeeRepo.GetAllEmployeesBySurName(name);
            }

            return(list);
        }