|
@@ -0,0 +1,18 @@
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace MafiaTelegramBot.DataBase
|
|
|
+{
|
|
|
+ public static class UserDao
|
|
|
+ {
|
|
|
+ public static async Task<User> GetUserById(long id)
|
|
|
+ {
|
|
|
+ var task = new Task<User>(ConvertToUser);
|
|
|
+ return await task;
|
|
|
+ }
|
|
|
+
|
|
|
+ private static User ConvertToUser()
|
|
|
+ {
|
|
|
+ return new();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|