Changing Frameworks

CSS and Fonts
This commit is contained in:
thepra committed 2020-04-12 20:01:46 +02:00
1 parent 5180f56e6f
commit a02b607bc6
38 files changed
+2813 -1002

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Seenginx.Models
{
public class Result<D>
{
public bool AllOk { get; private set; } = true;
public string ErrorMessage { get; private set; }
public Exception Exception { get; private set; } = null;
public D Data { get; private set; }
public Result<D> Invalidate(string errorMessage, Exception exception = null)
{
AllOk = false;
ErrorMessage = errorMessage;
if (exception != null)
Exception = exception;
return this;
}
public void SetData(D data) => Data = data;
}
}