/// <inheritdoc /> public bool AddUrl(string key, string url) { _context.Add(new MappedUrl() { Key = key, Url = url }); return(_context.SaveChanges() == 1); }
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(); }
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(); }