|
@@ -12,6 +12,7 @@ using System.Transactions;
|
|
|
using GxPress.Common.Exceptions;
|
|
|
using GxPress.Common.Page;
|
|
|
using GxPress.Request.Media;
|
|
|
+using System;
|
|
|
|
|
|
namespace GxPress.Repository.Implement.Media
|
|
|
{
|
|
@@ -91,6 +92,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
{
|
|
|
using (var transactionScope = new TransactionScope())
|
|
|
{
|
|
|
+ model.AutoNumber = DateTime.Now.Ticks.ToString();
|
|
|
var id = await _repository.InsertAsync(model);
|
|
|
if (id > 0)
|
|
|
{
|