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