DocSpace-buildtools/common/services/ASC.AuditTrail/Mappers/MessageMaps.cs

57 lines
1.2 KiB
C#
Raw Normal View History

2022-02-03 11:16:34 +00:00
namespace ASC.AuditTrail.Mappers;
internal class MessageMaps
2020-10-06 07:06:05 +00:00
{
2022-02-03 11:16:34 +00:00
public string ActionTypeTextResourceName { get; set; }
public string ActionTextResourceName { get; set; }
public string ProductResourceName { get; set; }
public string ModuleResourceName { get; set; }
2020-10-06 07:06:05 +00:00
2022-02-03 11:16:34 +00:00
public string GetActionTypeText()
{
try
{
return AuditReportResource.ResourceManager.GetString(ActionTypeTextResourceName);
}
catch
2020-10-06 07:06:05 +00:00
{
2022-02-03 11:16:34 +00:00
return null;
2020-10-06 07:06:05 +00:00
}
2022-02-03 11:16:34 +00:00
}
2020-10-06 07:06:05 +00:00
2022-02-03 11:16:34 +00:00
public string GetActionText()
{
try
{
return AuditReportResource.ResourceManager.GetString(ActionTextResourceName);
}
catch
2020-10-06 07:06:05 +00:00
{
2022-02-03 11:16:34 +00:00
return null;
2020-10-06 07:06:05 +00:00
}
2022-02-03 11:16:34 +00:00
}
2020-10-06 07:06:05 +00:00
2022-02-03 11:16:34 +00:00
public string GetProduct()
{
try
{
return AuditReportResource.ResourceManager.GetString(ProductResourceName);
}
catch
2020-10-06 07:06:05 +00:00
{
2022-02-03 11:16:34 +00:00
return null;
2020-10-06 07:06:05 +00:00
}
2022-02-03 11:16:34 +00:00
}
2020-10-06 07:06:05 +00:00
2022-02-03 11:16:34 +00:00
public string GetModule()
{
try
{
return AuditReportResource.ResourceManager.GetString(ModuleResourceName);
}
catch
2020-10-06 07:06:05 +00:00
{
2022-02-03 11:16:34 +00:00
return null;
2020-10-06 07:06:05 +00:00
}
}
}