-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2145 - Move Savechanges at last step of CRUD in edge model service
- Loading branch information
1 parent
1518c44
commit d501e81
Showing
3 changed files
with
40 additions
and
95 deletions.
There are no files selected for viewing
64 changes: 31 additions & 33 deletions
64
src/AzureIoTHub.Portal.Application/Services/IEdgeModelService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
// Copyright (c) CGI France. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace AzureIoTHub.Portal.Application.Services | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using AzureIoTHub.Portal.Models.v10; | ||
using AzureIoTHub.Portal.Shared.Models.v10.Filters; | ||
using Microsoft.AspNetCore.Http; | ||
|
||
public interface IEdgeModelService | ||
{ | ||
Task<IEnumerable<IoTEdgeModelListItem>> GetEdgeModels(EdgeModelFilter edgeModelFilter); | ||
|
||
Task<IoTEdgeModel> GetEdgeModel(string modelId); | ||
|
||
Task CreateEdgeModel(IoTEdgeModel edgeModel); | ||
Task UpdateEdgeModel(IoTEdgeModel edgeModel); | ||
|
||
Task DeleteEdgeModel(string edgeModelId); | ||
|
||
Task<string> GetEdgeModelAvatar(string edgeModelId); | ||
|
||
Task<string> UpdateEdgeModelAvatar(string edgeModelId, IFormFile file); | ||
|
||
Task DeleteEdgeModelAvatar(string edgeModelId); | ||
|
||
Task SaveModuleCommands(IoTEdgeModel deviceModelObject); | ||
|
||
Task<IEnumerable<IoTEdgeModule>> GetPublicEdgeModules(); | ||
} | ||
} | ||
// Copyright (c) CGI France. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace AzureIoTHub.Portal.Application.Services | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using AzureIoTHub.Portal.Models.v10; | ||
using AzureIoTHub.Portal.Shared.Models.v10.Filters; | ||
using Microsoft.AspNetCore.Http; | ||
|
||
public interface IEdgeModelService | ||
{ | ||
Task<IEnumerable<IoTEdgeModelListItem>> GetEdgeModels(EdgeModelFilter edgeModelFilter); | ||
|
||
Task<IoTEdgeModel> GetEdgeModel(string modelId); | ||
|
||
Task CreateEdgeModel(IoTEdgeModel edgeModel); | ||
Task UpdateEdgeModel(IoTEdgeModel edgeModel); | ||
|
||
Task DeleteEdgeModel(string edgeModelId); | ||
|
||
Task<string> GetEdgeModelAvatar(string edgeModelId); | ||
|
||
Task<string> UpdateEdgeModelAvatar(string edgeModelId, IFormFile file); | ||
|
||
Task DeleteEdgeModelAvatar(string edgeModelId); | ||
|
||
Task<IEnumerable<IoTEdgeModule>> GetPublicEdgeModules(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters