public int SolvedCountIncrease()
        {
            PersonelViewModel pvm  = new PersonelViewModel();
            Personel          temp = scoreList.FirstOrDefault(x => x.PersonelID == LoggedPersonel.PersonelID);

            if (temp != null)
            {
                Count = temp.SolvedCount++;
            }
            //var t = int.Parse(temp.SolvedCount);
            return(count);
        }
Esempio n. 2
0
        public Issue SolveThis(Issue selectedItem)
        {
            PersonelViewModel pvm = new PersonelViewModel();
            var t = pvm.LoggedPersonel;
            DataAccessService da = new DataAccessService();
            var temp             = selectedItem;

            //service.SelectedUpdate(selectedItem.IssueID);
            if (temp.Solved != true)
            {
                temp.Solved   = true;
                temp.SolvedBy = t.PersonelName;
                selectedItem  = temp;
                da.SelectedUpdate(selectedItem.IssueID, t.PersonelName);
                da.UpdatePersonel(t.PersonelID);
                da.ScoreBoard();
                pvm.SolvedCountIncrease();
            }
            return(selectedItem);
        }