Exemplo n.º 1
0
 public Standard GetStandardByName(string name)
 {
     return(_standardRepository.GetSingle(
                s => s.StandardName.Equals(name),
                s => s.Students));
 }
        } //close GetStandardByID(...)

        public Standard GetStandardByName(string standardName)
        {
            return(_standardRepository.GetSingle(
                       d => d.StandardName.Equals(standardName),
                       d => d.Students)); //include related students
        } //close GetStandardByName(...)
Exemplo n.º 3
0
 public Standard GetStandardByID(int id)
 {
     return(_standardRepository.GetSingle(
                s => s.StandardId == id,
                s => s.Students));
 }
Exemplo n.º 4
0
 public Standard GetStandardByName(string standardName)
 {
     return(standardRepository.GetSingle(
                d => d.StandardName.Equals(standardName),
                d => d.Students)); //include related employees
 }