Пример #1
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();
        }
Пример #2
0
        public void Create(CreateInformationDto dto)
        {
            var information = new InformationDbEntity();

            information.Titel      = dto.Titel;
            information.Logo       = dto.Logo;
            information.WhataApp   = dto.WhataApp;
            information.linkedIn   = dto.linkedIn;
            information.Twitter    = dto.Twitter;
            information.Facebook   = dto.Facebook;
            information.Instagram  = dto.Instagram;
            information.phone      = dto.phone;
            information.ppolicyURL = dto.ppolicyURL;

            _DB.Information.Add(information);
            _DB.SaveChanges();
        }