public async Task <int> Create(Survey entity) { _context.Surveys.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public virtual async Task <int> Create(TEntity entity) { ItemSet.Add(entity); await Context.SaveChangesAsync(); return(entity.Id); }
public async Task <int> Create(Employee newEmployee) { Context.Employees.Add(newEmployee); await Context.SaveChangesAsync(); return(newEmployee.Id); }
public async Task <int> Create(Question entity) { _context.Questions.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public async Task <int> Create(Holiday newHoliday) { Context.Holidays.Add(newHoliday); await Context.SaveChangesAsync(); return(newHoliday.Id); }
public async Task <int> Create(NotificationSettings entity) { _context.NotificationSettings.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public async Task <int> Create(InventoryItemTag entity) { _context.InventoryItemsTags.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public async Task <int> Create(Choice entity) { _context.Choices.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public async Task <int> Create(BackgroundTask entity) { _context.BackgroundTasks.Add(entity); await _context.SaveChangesAsync(); return(entity.Id); }
public async Task<int> Create(EmailTemplate newEmailTemplate) { _context.EmailTemplates.Add(newEmailTemplate); await _context.SaveChangesAsync(); return newEmailTemplate.Id; }
public async Task <int> Create(FileRecord newFileRecord) { await _context.FileRecords.AddAsync(newFileRecord); await _context.SaveChangesAsync(); return(newFileRecord.Id); }
public async Task <int> Create(InventoryItem newItem) { await _context.InventoryItems.AddAsync(newItem); await _context.SaveChangesAsync(); return(newItem.Id); }
public async Task <int> Create(Answer entity) { await _context.Answers.AddAsync(entity); await _context.SaveChangesAsync(); return(entity.Id); }