public void CreateSection(CreateSectionDto createSectionDto) { var newSection = Mapper.Map <Section>(createSectionDto); newSection.UserId = _accRepo.GetProfileIdByAccountId(createSectionDto.UserAccountId); _sectionRepo.AddNewItem(newSection); _sectionRepo.SaveChanges(); }