public async Task <NotificationResult> InsertAsync(ProductInfo product) { var result = new NotificationResult(); try { await _context.Product.AddAsync(product); await _context.SaveChangesAsync(); } catch (Exception ex) { result.AddError(ex); throw; } return(result); }