Esempio n. 1
0
        public ActionResult <List <TagOutputModel> > GetTagsWhichAreNotInTest(int testId)
        {
            Mapper           mapper = new Mapper();
            AuthorDataAccess tags   = new AuthorDataAccess();
            var test = tags.GetTestById(testId);

            if (test == null)
            {
                return(BadRequest("Теста не существует"));
            }
            return(Ok(mapper.ConvertTagDTOToTagModelList(tags.GetTagsWhichAreNotInTest(testId))));
        }