Example #1
0
 public IDataResult <Director> GetByName(string directorName)
 {
     return(new SuccessDataResult <Director>(_directorDal.Get(x => x.FirstName + " " + x.LastName == directorName)));
 }
Example #2
0
 public Director GetById(int id)
 {
     return(_directorDal.Get(d => d.Id == id));
 }