-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMediaController.cs
74 lines (64 loc) · 2.74 KB
/
MediaController.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using Domain.Shared.Entities;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Presentation.Abstractions;
namespace Presentation.AltControllers
{
[Route("api/[controller]")]
public sealed class MediaController : ApiController
{
public MediaController(ISender sender) : base(sender)
{
}
[HttpGet]
[Route(nameof(GetMediaEntriesForEntry))]
public async Task<IActionResult> GetMediaEntriesForEntry([FromBody] EntryIdPair parentIdPair, CancellationToken cancellation)
{
throw new NotImplementedException();
}
[HttpPost]
[Route(nameof(CreateMediaEntries))]
public async Task<IActionResult> CreateMediaEntries([FromBody] List<CreateMediaEntryInfo> createMediaEntryInfos, CancellationToken cancellation)
{
throw new NotImplementedException();
}
[HttpPut]
[Route(nameof(UpdateMediaEntries))]
public async Task<IActionResult> UpdateMediaEntries([FromBody] List<UpdateMediaEntryInfo> updateMediaEntryInfos, CancellationToken cancellation)
{
throw new NotImplementedException();
}
[HttpDelete]
[Route(nameof(DeleteMediaEntries))]
public async Task<IActionResult> DeleteMediaEntries([FromBody] List<DeleteMediaEntryInfo> deleteMediaEntriesInfos, CancellationToken cancellation)
{
throw new NotImplementedException();
}
[HttpPut]
[Route(nameof(TransferMediaEntries))]
public async Task<IActionResult> TransferMediaEntries([FromBody] List<TransferMediaEntryInfo> transferMediaEntriesInfos, CancellationToken cancellation)
{
throw new NotImplementedException();
}
public class CreateMediaEntryInfo
{
public MediaDTO Media { get; set; }
public EntryIdPair ParentEntryIdPair { get; set; } // Do we need EntryIdPair or just the parent entry id?
}
public class UpdateMediaEntryInfo
{
// List of modified properties? Updated DTO?
}
public class DeleteMediaEntryInfo
{
public EntryIdPair MediaEntryIdPair { get; set; }
public EntryIdPair ParentEntryIdPair { get; set; } // Do we need EntryIdPair or just the parent entry id?
}
public class TransferMediaEntryInfo
{
public EntryIdPair MediaEntryIdPair { get; set; }
public EntryIdPair OldParentEntryIdPair { get; set; } // Do we need EntryIdPair or just the old parent entry id?
public EntryIdPair NewParentEntryIdPair { get; set; } // Do we need EntryIdPair or just the old parent entry id?
}
}
}