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