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(...)
public Standard GetStandardByID(int id) { return(_standardRepository.GetSingle( s => s.StandardId == id, s => s.Students)); }
public Standard GetStandardByName(string standardName) { return(standardRepository.GetSingle( d => d.StandardName.Equals(standardName), d => d.Students)); //include related employees }