public List <BasicInfoWSModel> getGroups(string pPeriod, string pCourse) { var period = int.Parse(pPeriod); var course = int.Parse(pCourse); var result = db.SP_getAllGroups(period, course).ToList(); return(result); }