public void Create(CreateSectionDTO dto) { var Section = new SectionDbEntity(); Section.Description = dto.Description; Section.Name = dto.Name; _DB.Sections.Add(Section); _DB.SaveChanges(); }
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(); }