last ...
This commit is contained in:
@@ -119,7 +119,7 @@ namespace xCategoryService.Providers
|
||||
item = await base.Add(
|
||||
item: item,
|
||||
userInfo: userInfo,
|
||||
connectionId: connectionId,
|
||||
connectionId: null, // Since here We dont want notification ...
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
isValid = !item.IsNullOrDefault();
|
||||
@@ -130,7 +130,38 @@ namespace xCategoryService.Providers
|
||||
|
||||
//
|
||||
var id = item.Id;
|
||||
var titleResource = titleResourceProvider.A
|
||||
var titleResourceTitle = await titleResourceProvider.AddOrUpdateItemResourcer(
|
||||
identifier: id,
|
||||
language: langauge,
|
||||
translation: title,
|
||||
userInfo: userInfo,
|
||||
connectionId: connectionId,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
var descriptionResourceTitle = await descriptionResourceProvider.AddOrUpdateItemResourcer(
|
||||
identifier: id,
|
||||
language: langauge,
|
||||
userInfo: userInfo,
|
||||
translation: description,
|
||||
connectionId: connectionId,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
// Update Category Dto ...
|
||||
item.Title = titleResourceTitle;
|
||||
item.Description = descriptionResourceTitle;
|
||||
item = await base.Update(
|
||||
id: id,
|
||||
item: item,
|
||||
userInfo: userInfo,
|
||||
connectionId: connectionId,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
var result = XCategoryTitleResourceProvider;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user