From bfadcd3a88e5a79c8dac78359f6890ae1b57953a Mon Sep 17 00:00:00 2001 From: mkoper02 Date: Wed, 27 Mar 2024 11:06:56 +0100 Subject: [PATCH] Created services classes and added TODO methods for each class --- Server/ReasnAPI/ReasnAPI/Services/.gitkeep | 0 .../ReasnAPI/ReasnAPI/Services/AddressService.cs | 16 ++++++++++++++++ .../ReasnAPI/ReasnAPI/Services/CommentService.cs | 16 ++++++++++++++++ .../ReasnAPI/ReasnAPI/Services/EventService.cs | 16 ++++++++++++++++ .../ReasnAPI/ReasnAPI/Services/ImageService.cs | 16 ++++++++++++++++ .../ReasnAPI/ReasnAPI/Services/IntrestService.cs | 16 ++++++++++++++++ .../ReasnAPI/Services/ObjectTypeService.cs | 16 ++++++++++++++++ .../ReasnAPI/Services/ParameterService.cs | 16 ++++++++++++++++ .../ReasnAPI/Services/ParticipantService.cs | 16 ++++++++++++++++ Server/ReasnAPI/ReasnAPI/Services/RoleService.cs | 16 ++++++++++++++++ .../ReasnAPI/ReasnAPI/Services/StatusService.cs | 16 ++++++++++++++++ Server/ReasnAPI/ReasnAPI/Services/TagService.cs | 16 ++++++++++++++++ Server/ReasnAPI/ReasnAPI/Services/UserService.cs | 16 ++++++++++++++++ 13 files changed, 192 insertions(+) delete mode 100644 Server/ReasnAPI/ReasnAPI/Services/.gitkeep create mode 100644 Server/ReasnAPI/ReasnAPI/Services/AddressService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/CommentService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/EventService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/ImageService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/IntrestService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/ObjectTypeService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/ParameterService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/ParticipantService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/RoleService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/StatusService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/TagService.cs create mode 100644 Server/ReasnAPI/ReasnAPI/Services/UserService.cs diff --git a/Server/ReasnAPI/ReasnAPI/Services/.gitkeep b/Server/ReasnAPI/ReasnAPI/Services/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/Server/ReasnAPI/ReasnAPI/Services/AddressService.cs b/Server/ReasnAPI/ReasnAPI/Services/AddressService.cs new file mode 100644 index 00000000..04f944f5 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/AddressService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class AddressService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/CommentService.cs b/Server/ReasnAPI/ReasnAPI/Services/CommentService.cs new file mode 100644 index 00000000..7b0767c0 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/CommentService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class CommentService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/EventService.cs b/Server/ReasnAPI/ReasnAPI/Services/EventService.cs new file mode 100644 index 00000000..5f1be88a --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/EventService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class EventService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/ImageService.cs b/Server/ReasnAPI/ReasnAPI/Services/ImageService.cs new file mode 100644 index 00000000..e077a215 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/ImageService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class ImageService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/IntrestService.cs b/Server/ReasnAPI/ReasnAPI/Services/IntrestService.cs new file mode 100644 index 00000000..5f2087fa --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/IntrestService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class IntrestService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/ObjectTypeService.cs b/Server/ReasnAPI/ReasnAPI/Services/ObjectTypeService.cs new file mode 100644 index 00000000..84ba4abc --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/ObjectTypeService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class ObjectTypeService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/ParameterService.cs b/Server/ReasnAPI/ReasnAPI/Services/ParameterService.cs new file mode 100644 index 00000000..9c178c2f --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/ParameterService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class ParameterService (ReasnContext context){ + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/ParticipantService.cs b/Server/ReasnAPI/ReasnAPI/Services/ParticipantService.cs new file mode 100644 index 00000000..c3f4cd68 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/ParticipantService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class ParticipantService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/RoleService.cs b/Server/ReasnAPI/ReasnAPI/Services/RoleService.cs new file mode 100644 index 00000000..6dea686b --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/RoleService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class RoleService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/StatusService.cs b/Server/ReasnAPI/ReasnAPI/Services/StatusService.cs new file mode 100644 index 00000000..2af9b1ad --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/StatusService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class StatusService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/TagService.cs b/Server/ReasnAPI/ReasnAPI/Services/TagService.cs new file mode 100644 index 00000000..a79b01c9 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/TagService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class TagService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Services/UserService.cs b/Server/ReasnAPI/ReasnAPI/Services/UserService.cs new file mode 100644 index 00000000..f657fcd8 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Services/UserService.cs @@ -0,0 +1,16 @@ +using ReasnAPI.Models.Database; + +namespace ReasnAPI.Services { + public class UserService (ReasnContext context) { + private readonly ReasnContext _context = context; + + /* TODO: Create following functions for this class + * create + * update + * delete + * get by ID + * get list by filter + * get all + */ + } +}