Fixed a bunch of warnings

This commit is contained in:
Andre Beging
2022-05-31 15:08:55 +02:00
parent cd22c2f215
commit 7208f1e86d
21 changed files with 202 additions and 140 deletions

View File

@@ -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
}
}