Ejemplo n.º 1
0
        public async Task <long?> CreateNewList(CreateListDto createListDto)
        {
            var count = await _listsRepository.GetCountListsInBoard(createListDto.BoardId);

            var list = new List()
            {
                Name     = createListDto.Name,
                BoardId  = createListDto.BoardId,
                Position = count
            };

            _listsRepository.Insert(list);
            await _listsRepository.SaveChangesOnContext();

            return(createListDto.BoardId);
        }