public ResponseModel <List <Photo> > GetById(int photoId) { return(new ResponseModel <List <Photo> > { result = _photoDAL.GetAll(p => p.PhotoID == photoId) }); }
public List <Photo> GetAll() { return(_PhotoDAL.GetAll().ToList()); }