diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index c2c12210..ce851c80 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -12684,7 +12684,7 @@
- User Visits Tracking Service
+ User Visits Tracking Service Implementation
@@ -13499,6 +13499,43 @@
+
+
+ User Visits Tracking Service
+
+
+
+
+ add record
+
+
+
+
+
+
+
+ delete record
+
+
+
+
+
+
+
+ start or stop tracking user
+
+
+
+
+
+
+
+ get user history
+
+
+
+
+
url
diff --git a/RMuseum/Services/IUserVisitsTrackingService.cs b/RMuseum/Services/IUserVisitsTrackingService.cs
new file mode 100644
index 00000000..c8299179
--- /dev/null
+++ b/RMuseum/Services/IUserVisitsTrackingService.cs
@@ -0,0 +1,45 @@
+using RMuseum.Models.Ganjoor.ViewModels;
+using RSecurityBackend.Models.Generic;
+using System;
+using System.Threading.Tasks;
+
+namespace RMuseum.Services
+{
+ ///
+ /// User Visits Tracking Service
+ ///
+ public interface IUserVisitsTrackingService
+ {
+ ///
+ /// add record
+ ///
+ ///
+ ///
+ ///
+ Task> AddAsync(Guid userId, int poemId);
+
+ ///
+ /// delete record
+ ///
+ ///
+ ///
+ ///
+ Task> DeleteAsync(Guid userId, Guid recordId);
+
+ ///
+ /// start or stop tracking user
+ ///
+ ///
+ ///
+ ///
+ Task> SwitchTrackingAsync(Guid userId, bool start);
+
+ ///
+ /// get user history
+ ///
+ ///
+ ///
+ ///
+ Task> GetUserHistory(PagingParameterModel paging, Guid userId);
+ }
+}
diff --git a/RMuseum/Services/Implementation/UserVisitsTrackingService.cs b/RMuseum/Services/Implementation/UserVisitsTrackingService.cs
index 69087a89..c5295cdf 100644
--- a/RMuseum/Services/Implementation/UserVisitsTrackingService.cs
+++ b/RMuseum/Services/Implementation/UserVisitsTrackingService.cs
@@ -13,9 +13,9 @@ using System.Threading.Tasks;
namespace RMuseum.Services.Implementation
{
///
- /// User Visits Tracking Service
+ /// User Visits Tracking Service Implementation
///
- public class UserVisitsTrackingService
+ public class UserVisitsTrackingService : IUserVisitsTrackingService
{
///
/// add record