Example #1
0
        public BankInfoDTO Get(Guid Id)
        {
            QuestionBank bank = repository.Get(Id);

            return(new BankInfoDTO
            {
                Name = bank.Name,
                Description = bank.Description,
                ModifiedDate = bank.ModifiedDate.ToString(),
                Type = repository.CountByType(Id),
                Difficulty = repository.CountByDifficulty(Id)
            });
        }