Exemple #1
0
        public async Task <int> CreateSectionAsync(string name, int projectId)
        {
            var s = new Entities.Section
            {
                Name      = name,
                ProjectId = projectId
            };
            await uow.SectionRepository.CreateAsync(s);

            return(s.Id);
        }
Exemple #2
0
        public async Task <IEnumerable <TaskCard> > GetSectionTasksAsync(int sectionId)
        {
            Entities.Section section = await TryFindSection(sectionId);

            return(ConvertToTaskCards(section.Tasks));
        }