Esempio n. 1
0
        public ActionResult About()
        {
            var model = new TableVIewModel();

            OperationResultRepository = new OperationManager();
            model.ViewList            = OperationResultRepository.GetAll();

            return(View(model));
        }
 public CalcController(IOperationResultRepository ORRepository,
                       IUserRepository UserRepository,
                       IOperationRepository OperationRepository)
 {
     Calc = new Calc();
     this.ORRepository        = ORRepository;
     this.UserRepository      = UserRepository;
     this.OperationRepository = OperationRepository;
 }
Esempio n. 3
0
 // GET: Calc
 public CalcController()
 {
     Calc           = new Calc(@"C:\Users\Дмитрий\Documents\Visual Studio 2017\Projects\CalcTest\WebCalcNew\bin");
     OperationsList = Calc.operations.Select(o => new SelectListItem()
     {
         Text = $"{o.GetType().Name}.{o.Name}", Value = $"{o.GetType().Name}.{o.Name}"
     });
     OperationResultRepository = new EFOperResultRepository();
 }
Esempio n. 4
0
        public CalcController()
        {
            Calc          = new Calc(@"C:\Users\Bogdan\Documents\Visual Studio 2015\Projects\CalcTest\WebCalc\bin");
            OperationList = Calc.Operations.Select(o => new SelectListItem()
            {
                Text = $"{o.GetType().Name}.{o.Name}", Value = $"{o.GetType().Name}.{o.Name}"
            });

            OperationResultRepository = new OperationManager();
        }
Esempio n. 5
0
 public BaseController(IOperationResultRepository ORRepository,
                       IUserRepository UserRep,
                       ILikeRepository LikeRepository,
                       IOperationRepository OperRep)
 {
     this.OperRep        = OperRep;
     this.ORRepository   = ORRepository;
     this.UserRep        = UserRep;
     this.LikeRepository = LikeRepository;
 }
Esempio n. 6
0
        public CalcController(IOperationRepository OpRepository,
                              IOperationResultRepository OperResultRepository,
                              IUserRepository userRepository)
        {
            //var extensionPath = Server.MapPath("~/App_Data/Extensions");
            // Operations = Helper.LoadOperations();

            if (Calculator == null)
            {
                Calculator = new Calculator(Helper.LoadOperations());
            }

            this.OpRepository         = OpRepository;
            this.OperResultRepository = OperResultRepository;
            this.userRepository       = userRepository;

            Operations      = OpRepository.GetAll();
            TopOperationIds = OperResultRepository.GetTopOperations(1, 2);
        }
 public OperationResultController(IOperationResultRepository orrepository, IUserRepository UserRepository, ILikeRepository LikeRepository, IOperationRepository OperationRepository)
     : base(orrepository, UserRepository, LikeRepository, OperationRepository)
 {
 }
Esempio n. 8
0
 public UserFavoriteRepository()
 {
     UserRepository            = new UserRepository();
     OperationResultRepository = new OperationResultRepository();
 }
Esempio n. 9
0
 public OperationResultController()
 {
     OperationResultRepository = new OperationResultRepository();
 }
Esempio n. 10
0
 public CalculatorController(IOperationResultRepository repository)
 {
     _repository = repository;
 }