Beispiel #1
0
        public JsonResult DeleteBranch(PoolViewModel poolVM, int branchId)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Delete PoolBranch").Add("CommPoolId", poolVM.PoolId).Add("BranchId", branchId).ToInputLogString());

            try
            {
                var deletedBranch = poolVM.SelectedBranch.FirstOrDefault(x => x.BranchId == branchId);

                if (deletedBranch.PoolId == null)
                {
                    poolVM.SelectedBranch.Remove(deletedBranch);
                }
                else
                {
                    deletedBranch.IsDelete = true;
                }

                return(Json(new
                {
                    Valid = true,
                    Data = JsonConvert.SerializeObject(poolVM.SelectedBranch)
                }));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Delete PoolBranch").Add("Error Message", ex.Message).ToFailLogString());
                return(Json(new
                {
                    Valid = false,
                    Error = Resource.Error_System,
                    Errors = string.Empty
                }));
            }
        }
Beispiel #2
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Pool").ToInputLogString());

            try
            {
                _commonFacade = new CommonFacade();

                PoolViewModel poolVM = new PoolViewModel();
                poolVM.SearchFilter = new PoolSearchFilter
                {
                    PoolName  = string.Empty,
                    PoolDesc  = string.Empty,
                    Email     = string.Empty,
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "PoolId",
                    SortOrder = "DESC"
                };

                ViewBag.PageSize     = poolVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(poolVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Pool").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Beispiel #3
0
        public IHttpActionResult Update(PoolViewModel updatePool)
        {
            Pool updatingPool = _context.Pools.SingleOrDefault(p => p.Id == updatePool.PoolId);

            if (updatingPool == null)
            {
                updatingPool = new Pool()
                {
                    OwnerAddress = updatePool.Address,
                    EntryFee     = updatePool.EntryFee,
                };
            }
            else
            {
                updatingPool.Nickname = updatePool.Nickname;
            }

            //Don't have reason to update address yet. too important to risk overwriting
            if (ModelState.IsValid)
            {
                _context.SaveChanges();
                updatePool.Address  = updatingPool.OwnerAddress;
                updatePool.EntryFee = updatingPool.EntryFee;
                return(Ok(updatePool));
            }

            return(BadRequest());
        }
        public ActionResult editPoolName(int Id)
        {
            PoolViewModel model   = new PoolViewModel();
            var           data    = _CompanyStructureMethod.getPoolsListById(Id);
            var           bizName = _CompanyStructureMethod.getBusinessListById((int)data.BusinessID);
            var           divName = _CompanyStructureMethod.getDivisionById(data.DivisionID);

            model.Id           = data.Id;
            model.Name         = data.Name;
            model.BusinessID   = (int)data.BusinessID;
            model.DivisionID   = data.DivisionID;
            model.BusinessName = bizName.Name;
            if (divName == null)
            {
                model.DivisionName = "";
            }
            else
            {
                model.DivisionName = divName.Name;
            }

            if (data == null)
            {
                return(Json("Error", JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
        }
        public ActionResult Create([Bind(Include = "PoolName,Items")] PoolViewModel poolViewModel)
        {
            Pool pool = Mapper.Map <Pool>(poolViewModel);

            if (!ValidatePoolItems(pool))
            {
                poolViewModel.PoolItemsValidationMessage = _poolItemValMsg;
            }

            var user = _unitOfWork.User.GetById(User.Identity.GetUserId());

            if (ModelState.IsValid)
            {
                pool.CreatedOn  = DateTime.Now;
                pool.ModifiedOn = DateTime.Now;
                pool.Author     = user;
                pool.Items      = pool.Items.Where(item => !string.IsNullOrEmpty(item.Label)).ToList();
                for (int i = 0; i < pool.Items.Count; i++)
                {
                    pool.Items[i].CreatedOn = DateTime.Now;
                    pool.Items[i].Number    = i + 1;
                }
                _unitOfWork.Pool.Insert(pool);
                _unitOfWork.Save();
                return(RedirectToAction("Index"));
            }
            if (!string.IsNullOrEmpty(poolViewModel.PoolItemsValidationMessage))
            {
                return(View(poolViewModel));
            }
            return(View());
        }
        public CompanyStructureViewModel returndPoolList()
        {
            CompanyStructureViewModel model = new CompanyStructureViewModel();
            var listpol  = _CompanyStructureMethod.getAllPoolsList();
            var listData = _CompanyStructureMethod.getAllDivisionList();
            var listbiz  = _CompanyStructureMethod.getAllBusinessList();

            foreach (var item in listpol)
            {
                var bizsName = _CompanyStructureMethod.getBusinessListById((int)item.BusinessID);

                if (bizsName != null)
                {
                    var divName = _CompanyStructureMethod.getDivisionById(item.DivisionID);
                    if (divName != null)
                    {
                        PoolViewModel tablepool = new PoolViewModel();
                        tablepool.Id           = item.Id;
                        tablepool.Name         = item.Name;
                        tablepool.DivisionName = divName.Name;
                        tablepool.BusinessName = bizsName.Name;
                        tablepool.CreatedDate  = item.CreatedDate;
                        model.poolLists.Add(tablepool);
                    }
                    else
                    {
                        PoolViewModel tablepool = new PoolViewModel();
                        tablepool.Id           = item.Id;
                        tablepool.Name         = item.Name;
                        tablepool.DivisionName = "";
                        tablepool.BusinessName = bizsName.Name;
                        tablepool.CreatedDate  = item.CreatedDate;
                        model.poolLists.Add(tablepool);
                    }
                }
            }

            foreach (var item in listData)
            {
                DivisionViewModel tableModel = new DivisionViewModel();
                tableModel.Id          = item.Id;
                tableModel.Name        = item.Name;
                tableModel.BusinessID  = item.BusinessID;
                tableModel.CreatedDate = item.CreatedDate;
                tableModel.Archived    = item.Archived;
                model.divisionLists.Add(tableModel);
            }
            foreach (var item in listbiz)
            {
                BusinessViewModel tableModel = new BusinessViewModel();
                tableModel.Id          = item.Id;
                tableModel.Name        = item.Name;
                tableModel.CreatedDate = item.CreatedDate;
                tableModel.Archived    = item.Archived;
                model.businessLists.Add(tableModel);
            }

            return(model);
        }
Beispiel #7
0
        public ActionResult Index()
        {
            PoolViewModel pvm = new PoolViewModel();

            pvm.Pools    = poolManager.GetPools(null);
            pvm.Question = poolManager.GetQuestions(false).First();
            return(View(pvm));
        }
Beispiel #8
0
        private void PoolDataGrid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            DataGrid dg = (DataGrid)sender;

            if (dg.SelectedItem != null)
            {
                PoolViewModel poolVm = (PoolViewModel)dg.SelectedItem;
                poolVm.Edit.Execute(null);
            }
        }
Beispiel #9
0
        //public ActionResult PoolsArchive() //TODO
        //{
        //    List<Pool> activePools = _unitOfWork.Pool.GetAllActive().ToList();
        //    List<PoolViewModel> pvm = Mapper.Map<List<PoolViewModel>>(activePools);
        //    return View(pvm);
        //}

        public ActionResult PoolDetails(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Pool          currentPool = _unitOfWork.Pool.GetById((int)id);
            PoolViewModel pvm         = Mapper.Map <PoolViewModel>(currentPool);

            return(View(pvm));
        }
        public ResizePool(PoolViewModel pool)
        {
            InitializeComponent();

            Pool = pool;

            // Resize Timeout
            Time resizeTime = new Time(true);
            dataTableResize = resizeTime.TimeDataTable;
            datagridResize.ItemsSource = dataTableResize.AsDataView();
        }
        public ResizePool(PoolViewModel pool)
        {
            InitializeComponent();

            Pool = pool;

            // Resize Timeout
            Time resizeTime = new Time(true);

            dataTableResize            = resizeTime.TimeDataTable;
            datagridResize.ItemsSource = dataTableResize.AsDataView();
        }
Beispiel #12
0
 public static void ShowEditWindow(PoolViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         IconName       = "Icon_Pool",
         IsDialogWindow = true,
         CloseVisible   = System.Windows.Visibility.Visible
     }, ucFactory: (window) =>
     {
         PoolViewModel vm = new PoolViewModel(source);
         vm.CloseWindow   = () => window.Close();
         return(new PoolEdit(vm));
     }, fixedSize: true);
 }
Beispiel #13
0
        public PoolView(PoolViewModel PVM, int index)
        {
            InitializeComponent();

            this.SizeChanged += PVM.SizeChanged;
            Shield.MouseDown += PVM.Click;

            PVM.Dispatcher = this.Dispatcher;

            Index                = index;
            DataContext          = PVM;
            PVM.PropertyChanged += PVM_PropertyChanged;

            PVM.StartWach();
        }
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Pool          pool          = _unitOfWork.Pool.GetById((int)id);
            PoolViewModel poolViewModel = Mapper.Map <PoolViewModel>(pool);

            if (poolViewModel == null)
            {
                return(HttpNotFound());
            }
            return(View(poolViewModel));
        }
Beispiel #15
0
 public static void ShowWindow(FormType formType, PoolViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = "矿池",
         FormType        = formType,
         IconName        = "Icon_Pool",
         IsMaskTheParent = true,
         Width           = 540,
         CloseVisible    = Visibility.Visible
     }, ucFactory: (window) =>
     {
         PoolViewModel vm = new PoolViewModel(source);
         window.AddCloseWindowOnecePath(vm.Id);
         return(new PoolEdit(vm));
     }, fixedSize: true);
 }
Beispiel #16
0
 public static void ShowWindow(FormType formType, PoolViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title          = "矿池",
         FormType       = formType,
         IconName       = "Icon_Pool",
         IsDialogWindow = true,
         Width          = 540,
         CloseVisible   = Visibility.Visible
     }, ucFactory: (window) =>
     {
         PoolViewModel vm = new PoolViewModel(source)
         {
             CloseWindow = () => window.Close()
         };
         return(new PoolEdit(vm));
     }, fixedSize: true);
 }
Beispiel #17
0
 public static void ShowWindow(FormType formType, PoolViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = "矿池",
         FormType        = formType,
         IconName        = "Icon_Pool",
         IsMaskTheParent = true,
         Width           = 540,
         CloseVisible    = Visibility.Visible
     }, ucFactory: (window) =>
     {
         PoolViewModel vm = new PoolViewModel(source);
         window.AddOnecePath <CloseWindowCommand>("处理关闭窗口命令", LogEnum.DevConsole, action: message => {
             window.Close();
         }, pathId: vm.Id, location: typeof(PoolEdit));
         return(new PoolEdit(vm));
     }, fixedSize: true);
 }
Beispiel #18
0
        public ActionResult PoolBranchList(PoolViewModel poolVM)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Get PoolBranch List").Add("PoolName", poolVM.JsonBranch).ToInputLogString());

            try
            {
                _commPoolFacade       = new CommPoolFacade();
                poolVM.PoolBranchList = _commPoolFacade.GetPoolBranchList(poolVM.SelectedBranch)
                                        .Where(x => x.IsDelete == false).ToList();

                Logger.Info(_logMsg.Clear().SetPrefixMsg("Get PoolBranch List").ToSuccessLogString());
                return(PartialView("~/Views/CommPool/_PoolBranchList.cshtml", poolVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Get PoolBranch List").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Beispiel #19
0
 public static void AddModelConnection(ElementsConnectionViewModel connection)
 {
     try
     {
         PoolElementViewModel startElementViewModel = connection.From as PoolElementViewModel;
         PoolViewModel        poolElementViewModel  = startElementViewModel.Pool;
         PoolElement          pool = null;
         if (poolElementViewModel != null)
         {
             pool = startElementViewModel.Pool.BaseElement as PoolElement;
         }
         else
         {
             pool = startElementViewModel.Document.Document.MainPoolElement;
         }
         pool.Connections.Add(connection.Model);
     }
     catch (NullReferenceException exception)
     {
         throw new ArgumentException("Error while creating connection. Model not found", exception);
     }
 }
Beispiel #20
0
        public static void ShowEditWindow(PoolViewModel source)
        {
            string title;
            string iconName;

            if (NTMinerRoot.Current.PoolSet.Contains(source.Id))
            {
                title    = "编辑矿池";
                iconName = "Icon_Edit";
            }
            else
            {
                title    = "添加矿池";
                iconName = "Icon_Add";
            }
            ContainerWindow.ShowWindow(new ContainerWindowViewModel {
                Title          = title,
                IconName       = iconName,
                IsDialogWindow = true,
                SaveVisible    = source.IsReadOnly ? System.Windows.Visibility.Collapsed : System.Windows.Visibility.Visible,
                CloseVisible   = System.Windows.Visibility.Visible,
                OnOk           = (uc) => {
                    var vm = ((PoolEdit)uc).Vm;
                    if (NTMinerRoot.Current.PoolSet.Contains(source.Id))
                    {
                        Global.Execute(new UpdatePoolCommand(vm));
                    }
                    else
                    {
                        Global.Execute(new AddPoolCommand(vm));
                    }
                    return(true);
                }
            }, ucFactory: (window) =>
            {
                PoolViewModel vm = new PoolViewModel(source);
                return(new PoolEdit(vm));
            }, fixedSize: true);
        }
Beispiel #21
0
        public ActionResult PoolList(PoolSearchFilter searchFilter)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Search Pool").Add("PoolName", searchFilter.PoolName)
                        .Add("PoolDesc", searchFilter.PoolDesc).Add("Email", searchFilter.Email).ToInputLogString());

            try
            {
                if (ModelState.IsValid)
                {
                    _commonFacade   = new CommonFacade();
                    _commPoolFacade = new CommPoolFacade();
                    PoolViewModel poolVM = new PoolViewModel();
                    poolVM.SearchFilter = searchFilter;

                    poolVM.PoolList      = _commPoolFacade.GetPoolList(poolVM.SearchFilter);
                    ViewBag.PageSize     = poolVM.SearchFilter.PageSize;
                    ViewBag.PageSizeList = _commonFacade.GetPageSizeList();

                    Logger.Info(_logMsg.Clear().SetPrefixMsg("Search Pool").ToSuccessLogString());
                    return(PartialView("~/Views/CommPool/_PoolList.cshtml", poolVM));
                }

                return(Json(new
                {
                    Valid = false,
                    Error = string.Empty,
                    Errors = GetModelValidationErrors()
                }));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Search Pool").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
        public EvaluateAutoScale(PoolViewModel pool)
        {
            InitializeComponent();

            Pool = pool;
        }
        public EvaluateAutoScale(PoolViewModel pool)
        {
            InitializeComponent();

            Pool = pool;
        }
Beispiel #24
0
 public PoolEdit(PoolViewModel vm)
 {
     this.DataContext = vm;
     InitializeComponent();
     ResourceDictionarySet.Instance.FillResourceDic(this, this.Resources);
 }
Beispiel #25
0
 public PoolEdit(PoolViewModel vm)
 {
     this.DataContext = vm;
     InitializeComponent();
 }
Beispiel #26
0
        public ActionResult Edit(PoolViewModel poolVM)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Save CommunicationPool").Add("CommPoolId", poolVM.PoolId)
                        .Add("PoolName", poolVM.PoolName).Add("PoolDesc", poolVM.PoolDesc).ToInputLogString());

            try
            {
                bool skipValidate = false;

                if (poolVM.PoolId != null && string.IsNullOrWhiteSpace(poolVM.Password) &&
                    string.IsNullOrWhiteSpace(poolVM.ConfirmPasswd))
                {
                    ModelState.Remove("Password");
                    ModelState.Remove("ConfirmPasswd");
                    skipValidate = true;
                }

                if (!string.IsNullOrWhiteSpace(poolVM.Password) && !string.IsNullOrWhiteSpace(poolVM.ConfirmPasswd) &&
                    !poolVM.ConfirmPasswd.Equals(poolVM.Password))
                {
                    ModelState.AddModelError("ConfirmPasswd", Resource.ValError_InvalidConfirmPasswd);
                }

                if (ModelState.IsValid)
                {
                    List <PoolBranchEntity> selectedBranch = poolVM.SelectedBranch;

                    // Validate select at least one branch
                    if (!poolVM.SelectedBranch.Any(x => x.IsDelete == false))
                    {
                        ViewBag.ErrorMessage = string.Format(CultureInfo.InvariantCulture, Resource.ValErr_AtLeastOneItemWithField, Resource.Lbl_Branch);
                        goto Outer;
                    }

                    // Save CommPool
                    PoolEntity poolEntity = new PoolEntity
                    {
                        PoolId          = poolVM.PoolId,
                        PoolName        = poolVM.PoolName,
                        PoolDesc        = poolVM.PoolDesc,
                        Email           = poolVM.Email,
                        Status          = poolVM.Status,
                        CreateUser      = UserInfo, //When save the program will select to save this parameter
                        UpdateUser      = UserInfo,
                        ReplyMail       = poolVM.ReplyMail,
                        EmailTemplateId = poolVM.PoolEmailTemplateId
                    };

                    if (!skipValidate)
                    {
                        string encryptedstring = StringCipher.Encrypt(poolVM.Password, Constants.PassPhrase);
                        poolEntity.Password = encryptedstring;
                    }

                    _commPoolFacade = new CommPoolFacade();

                    #region "Check Duplicate"
                    // Check Duplicate
                    if (_commPoolFacade.IsDuplicateCommPool(poolEntity) == true)
                    {
                        ViewBag.ErrorMessage = Resource.Error_SaveFailed_CommPoolDuplicate;
                        goto Outer;
                    }
                    #endregion

                    bool success = _commPoolFacade.SaveCommPool(poolEntity, selectedBranch);

                    if (success)
                    {
                        return(RedirectToAction("Search", "CommPool"));
                    }

                    ViewBag.ErrorMessage = Resource.Error_SaveFailed;
                }

Outer:
                TempData["PoolVM"] = poolVM;
                return(InitEdit());
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Save CommunicationPool").ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Beispiel #27
0
        public ActionResult InitEdit(int?commPoolId = null)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitEdit CommunicationPool").Add("CommPoolId", commPoolId).ToInputLogString());

            try
            {
                PoolViewModel poolVM = null;

                if (TempData["PoolVM"] != null)
                {
                    poolVM = (PoolViewModel)TempData["PoolVM"];
                }
                else
                {
                    poolVM = new PoolViewModel {
                        PoolId = commPoolId
                    };
                }

                _commonFacade   = new CommonFacade();
                _commPoolFacade = new CommPoolFacade();

                var statusList = _commonFacade.GetStatusSelectList();
                poolVM.StatusList = new SelectList((IEnumerable)statusList, "Key", "Value", string.Empty);
                var replyMailList = _commonFacade.GetReplyMailSelectList();
                poolVM.ReplyMailList      = new SelectList((IEnumerable)replyMailList, "Key", "Value", string.Empty);
                poolVM.PoolEmailTemplates = _commPoolFacade.GetPoolEmailTemplates().Select(c => new SelectListItem {
                    Text = c.Name, Value = c.PoolEmailTemplateId + ""
                }).ToList();

                if (poolVM.PoolId != null)
                {
                    PoolEntity poolEntity = _commPoolFacade.GetPoolByID(poolVM.PoolId.Value);
                    poolVM.PoolName            = poolEntity.PoolName;
                    poolVM.PoolDesc            = poolEntity.PoolDesc;
                    poolVM.Email               = poolEntity.Email;
                    poolVM.Status              = poolEntity.Status;
                    poolVM.ReplyMail           = poolEntity.ReplyMail;
                    poolVM.PoolEmailTemplateId = poolEntity.EmailTemplateId;

                    poolVM.CreateUser  = poolEntity.CreateUser != null ? poolEntity.CreateUser.FullName : string.Empty;
                    poolVM.UpdateUser  = poolEntity.UpdateUser != null ? poolEntity.UpdateUser.FullName : string.Empty;
                    poolVM.CreatedDate =
                        poolEntity.CreatedDate.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime);
                    poolVM.UpdateDate =
                        poolEntity.Updatedate.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime);

                    var poolBranches = _commPoolFacade.GetPoolBranchList(poolVM.PoolId.Value);
                    poolVM.PoolBranchList = poolBranches;
                    poolVM.JsonBranch     = JsonConvert.SerializeObject(poolBranches);
                }
                else
                {
                    poolVM.PoolBranchList = _commPoolFacade.GetPoolBranchList(poolVM.SelectedBranch)
                                            .Where(x => x.IsDelete == false).ToList();

                    // default UserLogin
                    if (this.UserInfo != null)
                    {
                        var today = DateTime.Now;
                        poolVM.CreateUser  = this.UserInfo.FullName;
                        poolVM.CreatedDate = today.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime);
                        poolVM.UpdateDate  = today.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime);
                        poolVM.UpdateUser  = this.UserInfo.FullName;
                    }
                }

                return(View("~/Views/CommPool/Edit.cshtml", poolVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitEdit CommunicationPool").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Beispiel #28
0
 public PoolEditCommand(FormType formType, PoolViewModel source)
 {
     this.FormType = formType;
     this.Source   = source;
 }
Beispiel #29
0
 public bool TryGetPoolVm(Guid poolId, out PoolViewModel poolVm)
 {
     return(_dicById.TryGetValue(poolId, out poolVm));
 }