//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;
        }
Esempio n. 2
0
 public UploaderController()
 {
     _pictureDal = new PictureDal(_db);
 }
Esempio n. 3
0
 public PictureLogic(IPictureDal dal)
 {
     this.dal = dal;
 }
Esempio n. 4
0
 public PictureManager(IPictureDal PictureDal)
 {
     _PictureDal = PictureDal;
 }