Fixed a bunch of warnings
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
using FoodsharingSiegen.Contracts.Entity;
|
||||
using FoodsharingSiegen.Contracts.Entity;
|
||||
|
||||
namespace FoodsharingSiegen.Server.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// The audit helper class (a. beging, 31.05.2022)
|
||||
/// </summary>
|
||||
public static class AuditHelper
|
||||
{
|
||||
#region Public Method CreateText
|
||||
|
||||
/// <summary>
|
||||
/// Creates the text using the specified audit (a. beging, 31.05.2022)
|
||||
/// </summary>
|
||||
/// <param name="audit">The audit</param>
|
||||
/// <returns>The string</returns>
|
||||
public static string CreateText(Audit audit)
|
||||
{
|
||||
switch (audit.Type)
|
||||
@@ -28,13 +38,12 @@ namespace FoodsharingSiegen.Server.Data
|
||||
return $"hat dem Neuling {audit.Data1} folgendes hinzugefügt: {audit.Data2}";
|
||||
case AuditType.RemoveInteraction:
|
||||
return $"hat eine Interaktion bei {audit.Data1} gelöscht.";
|
||||
break;
|
||||
case AuditType.None:
|
||||
default:
|
||||
return $"{audit.Data1}, {audit.Data2}";
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user