public async Task SaveCameraAsync(CameraModel camera) { if (camera.Id == 0) { await _cameraRepository.InsertAsync(camera); } else { await _cameraRepository.UpdateAsync(camera); } }
public async Task SaveCameraAsync(CameraModel camera) { if (camera.Id == 0) { await _cameraRepository.InsertAsync(camera); } else { await _cameraRepository.UpdateAsync(camera); } }