public int Insert(T obj)
 {
     context.BeginTransaction();
     context.Set <T>().Add(obj);
     context.SendChanges();
     return(obj.Id);
 }
        public async Task Add(Part part)
        {
            _logger.LogInformation($"Attempting to save new part Id:{part.Id} Manufacturer's #:{part.MfrsPartNumber}.");
            await _applicationContext.BeginTransaction();

            await _applicationContext.AddAsync(part);

            await _applicationContext.Commit();

            _logger.LogInformation($"Successfully saved new part Id:{part.Id} Manufacturer's #:{part.MfrsPartNumber}.");
        }