Exemplo n.º 1
0
 //GetAll
 public static List <Subjects1> GetAllSubjects()
 {
     return(SubjectsConvertor.ConvertToListDto(SubjectsDL.GetAllSubjects()));
 }
Exemplo n.º 2
0
 //GetByParentId
 public static List <Subjects1> GeSubjectByParentId(int parentId)
 {
     return(SubjectsConvertor.ConvertToListDto(DL.SubjectsDL.GeSubjectByParentId(parentId)));
 }
Exemplo n.º 3
0
        //GetContainName
        public static List <Subjects1> GetSubjectContainText(string text)
        {
            List <Subjects> lst = new List <Subjects>(SubjectsDL.GetAllSubjects());

            return(SubjectsConvertor.ConvertToListDto(lst.Where(k => k.Subject.Contains(text)).ToList()));
        }
Exemplo n.º 4
0
 //GetOnlyParents
 public static List <Subjects1> GeSubjectOnlyParents()
 {
     return(SubjectsConvertor.ConvertToListDto(DL.SubjectsDL.GeSubjectOnlyParents()));
 }