/// <summary>
        /// TODO : To Get LoginHistory Details List...
        /// </summary>
        public async Task GetIntroductionList()
        {
            IntroductionList = new ObservableCollection <IntroductionModel>(IntroductionModel.GetIntroList());
            IndicatorList    = new ObservableCollection <IndicatorModel>();
            var indicatorList = new ObservableCollection <IndicatorModel>();
            int first         = 0;

            foreach (var item in IntroductionList)
            {
                IndicatorModel objIndicator = new IndicatorModel();
                if (first == 0)
                {
                    objIndicator.IsCurrent    = true;
                    objIndicator.IsNotCurrent = false;
                    first = 1;
                }
                else
                {
                    objIndicator.IsCurrent    = false;
                    objIndicator.IsNotCurrent = true;
                }
                objIndicator.Id = item.ID.ToString();
                indicatorList.Add(objIndicator);
            }
            IndicatorList = indicatorList;
        }
Ejemplo n.º 2
0
        public IActionResult Introduction()
        {
            IntroductionModel model = new IntroductionModel();

            model.CurrentUserId   = CurrentUser().CurrentUserId;
            model.CurrentUsername = CurrentUser().CurrentUsername;

            model.RegitseredTime = -(DateTime.Now.Day - userService.GetById(CurrentUser().CurrentUserId.ToString()).TimeCreated.Day);

            return(View(model));
        }