Ejemplo n.º 1
0
        public void Create(CreateSectionDTO dto)
        {
            var Section = new SectionDbEntity();

            Section.Description = dto.Description;
            Section.Name        = dto.Name;
            _DB.Sections.Add(Section);
            _DB.SaveChanges();
        }
Ejemplo n.º 2
0
        public void Create(CreateSectionDto dto)
        {
            var section = new SectionDbEntity();

            section.Titel       = dto.Titel;
            section.Discerption = dto.Discerption;
            section.Image       = dto.Image;

            _DB.sections.Add(section);
            _DB.SaveChanges();
        }