init
This commit is contained in:
17
KretaWeb/Helpers/Error/StatusErrorFactory.cs
Normal file
17
KretaWeb/Helpers/Error/StatusErrorFactory.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Kreta.Web.Helpers.Error
|
||||
{
|
||||
public static class StatusErrorFactory
|
||||
{
|
||||
public static StatusError GetSorolasStatusErrorWithReloadDDL(string message)
|
||||
{
|
||||
return new StatusError(HttpStatusCode.BadRequest, message) { CloseFunction = "KretaOsztalybaSorolasHelper.afterErrorReloadDDL();" };
|
||||
}
|
||||
|
||||
public static StatusError GetSorolasStatusError(string message)
|
||||
{
|
||||
return new StatusError(HttpStatusCode.BadRequest, message);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user