public List <PracticeDetail> GetPracticeDetailByPracticeID(Guid practiceID)
        {
            List <PracticeDetail> practiceDetail = new List <PracticeDetail>();

            foreach (var item in _practiceDetailManagement.GetAllPracticeDetails())
            {
                if (practiceID == item.PracticeID)
                {
                    practiceDetail.Add(item);
                }
            }
            return(practiceDetail);
        }
Ejemplo n.º 2
0
        public string GetCount(string Entity)
        {
            int result = 0;

            switch (Entity)
            {
            case "Dictionary":
                _dictionaryManagement = new DictionaryManagement();
                result = _dictionaryManagement.GetAllWords().Count();
                break;

            case "Practice":
                _practiceManagement = new PracticeManagement();
                result = _practiceManagement.GetAllPractices().Count();
                break;

            case "PracticeDetail":
                _practiceDetailManagement = new PracticeDetailManagement();
                result = _practiceDetailManagement.GetAllPracticeDetails().Count();
                break;

            case "User":
                _userManagement = new UserManagement();
                result          = _userManagement.GetAllUser().Count();
                break;

            case "WordPool":
                _wordPoolManagement = new WordPoolManagement();
                result = _wordPoolManagement.GetAllWordPools().Count();
                break;

            case "WordPoolDetail":
                _wordPoolDetailManagement = new WordPoolDetailManagement();
                result = _wordPoolDetailManagement.GetAllWordPoolDetail().Count();
                break;

            case "Payment":
                _paymentManagement = new PaymentManagement();
                result             = _paymentManagement.GetAllPayments().Count();
                break;

            default:
                break;
            }
            return(result.ToString());
        }