public async Task <IActionResult> Create([Bind("Id,Title,FirstIssue,LastIssue,NumIssues,NumSpIssues,LimitedSeries,SortableTitle")] ComicBookTitleDTO comicBookTitle)
        {
            if (!ModelState.IsValid)
            {
                return(View(comicBookTitle));
            }

            _context.Add(comicBookTitle);
            await _context.SaveChangesAsync();

            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> Create([Bind("Id,OwnerId,Title,SpecialIssue,IssueNum,IssueName,Grade,Rating,Description,Own,Want")]
                                                 ComicBookDetails comicBookDetails)
        {
            if (!ModelState.IsValid)
            {
                return(View(comicBookDetails));
            }
            comicBookDetails.OwnerId = _userId;
            _context.Add(comicBookDetails);
            await _context.SaveChangesAsync();

            return(RedirectToAction(nameof(Index), new { comicBookDetails.Title.Id }));
        }
        public async Task <IActionResult> Create([Bind("TitleId,OwnerId,BookTitle,SpecialIssue,IssueNum,IssueName,Grade,Rating,Description,Own,Want")]
                                                 ComicBookDetailsDTO comicBookDetailsDto)
        {
            if (!ModelState.IsValid)
            {
                return(View(comicBookDetailsDto));
            }
            await GetUser();

            comicBookDetailsDto.OwnerId = _userId;
            var comicBookDetails = _mapper.Map <ComicBookDetails>(comicBookDetailsDto);

            _context.Add(comicBookDetails);
            await _context.SaveChangesAsync();

            return(RedirectToAction(nameof(Index), new { id = comicBookDetailsDto.TitleId }));
        }