/// <inheritdoc />
        public bool AddUrl(string key, string url)
        {
            _context.Add(new MappedUrl()
            {
                Key = key,
                Url = url
            });

            return(_context.SaveChanges() == 1);
        }
Beispiel #2
0
        public ActionResult <Department> Create(string title)
        {
            var department = new Department
            {
                Title = title,
            };

            _db.Add(department);
            _db.SaveChanges();

            return(department);
        }
 public void Create(PresentationConfiguration record)
 {
     _context.Add(record);
     _context.SaveChanges();
 }
Beispiel #4
0
 public async Task <bool> AddSession(AuthSession session)
 {
     _context.Add(session);
     return(await _context.SaveChangesAsync() == 1);
 }
 public void Create(PresentationRecord record)
 {
     _context.Add(record);
     _context.SaveChanges();
 }