//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);
 }
Example #3
0
 public PictureLogic(IPictureDal dal)
 {
     this.dal = dal;
 }
Example #4
0
 public PictureManager(IPictureDal PictureDal)
 {
     _PictureDal = PictureDal;
 }