public async Task AddVideo(TransmissionDTO newVideo) { await _context.Transmissions.AddAsync(Mapper.Map <TransmissionDTO, Transmission>(newVideo)); await _context.SaveChangesAsync(); }
public async Task AddCamera(Camera newCamera) { await _context.Cameras.AddAsync(newCamera); await _context.SaveChangesAsync(); }