-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Back | Read] UserEntity & UserGetList & UserGetMe - [Front | Comp] O…
…rderPersona - [Front | Hub] OrderUser (#55) * UserEntity * OrderUser * 1 * UserGetList * UserGetMe * 1
- Loading branch information
Showing
11 changed files
with
94 additions
and
87 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,17 @@ | ||
namespace TSystems.LoveOTC.AdminHub; | ||
|
||
using Hub; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
internal partial class AdminHub { | ||
/** | ||
* <remarks> | ||
* @author Aloento | ||
* @since 0.1.0 | ||
* @version 0.1.0 | ||
* @version 1.0.0 | ||
* </remarks> | ||
*/ | ||
public async Task<Persona> UserGetOrderUser(string orderId) { | ||
return new() { | ||
Name = "Aloento", | ||
Phone = "+36 300000000", | ||
EMail = "[email protected]", | ||
Address = string.Concat(Enumerable.Range(0, 10).Select(_ => Guid.NewGuid().ToString())) | ||
}; | ||
} | ||
|
||
/** | ||
* <remarks> | ||
* @author Aloento | ||
* @since 0.1.0 | ||
* @version 0.1.0 | ||
* </remarks> | ||
*/ | ||
public async Task<List<UserItem>> UserGetList() { | ||
return new() | ||
{ | ||
new() { | ||
Id = Guid.NewGuid(), | ||
Name = "Aloento", | ||
EMail = "[email protected]", | ||
Admin = true | ||
}, | ||
new() { | ||
Id = Guid.NewGuid(), | ||
Name = "SomeOne", | ||
EMail = "[email protected]" | ||
} | ||
}; | ||
} | ||
public async Task<Guid[]> UserGetList() => | ||
await this.Db.Users | ||
.Select(x => x.UserId) | ||
.ToArrayAsync(); | ||
} |
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
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
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
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
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