//private ArtGalleryDBContext _db; //private IPictureDal _pictureDal; //private IUserDal _userDal; public PictureEditorController(IPictureDal pictureDal, IUserDal userDal) { _pictureDal = pictureDal; _userDal = userDal; //_db = new ArtGalleryDBContext(); //if (pictureDal == null) // pictureDal = new PictureDal(_db); //if (userDal == null) // userDal = new UserDal(_db); //_pictureDal = pictureDal; //_userDal = userDal; }
public UploaderController() { _pictureDal = new PictureDal(_db); }
public PictureLogic(IPictureDal dal) { this.dal = dal; }
public PictureManager(IPictureDal PictureDal) { _PictureDal = PictureDal; }