Use DTOs in controller
This commit is contained in:
parent
b52610e126
commit
106956157b
5 changed files with 56 additions and 11 deletions
|
|
@ -19,7 +19,7 @@ namespace Start.Shared {
|
|||
}
|
||||
|
||||
public BookmarkContainerDto(int bookmarkContainerId, string title,
|
||||
IList<BookmarkGroupDto> bookmarkGroups) : this(bookmarkContainerId, title) {
|
||||
IList<BookmarkGroupDto>? bookmarkGroups) : this(bookmarkContainerId, title) {
|
||||
this.BookmarkGroups = bookmarkGroups;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Start.Shared {
|
|||
}
|
||||
|
||||
public BookmarkGroupDto(int bookmarkGroupId, string title, string color,
|
||||
IList<BookmarkDto> bookmarks) : this(bookmarkGroupId, title, color) {
|
||||
IList<BookmarkDto>? bookmarks) : this(bookmarkGroupId, title, color) {
|
||||
this.Bookmarks = bookmarks;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
Start/Shared/BookmarkStatus.cs
Normal file
9
Start/Shared/BookmarkStatus.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
namespace Start.Shared {
|
||||
public enum BookmarkStatus {
|
||||
OK = 1,
|
||||
BookmarkDoesNotExist = 2,
|
||||
OwnerDoesNotMatch = 3,
|
||||
UserDoesNotExist = 4
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue