- Prioritätsbehandlung für document_path_dmz in EnvelopeService.LoadEnvelopes hinzugefügt. - CRUD-Operationen in EnvlopeDocument und ConfigurationFile Services/Repositories unter Verwendung von WebCoreModules implementiert. - Verschiedene Dateimethoden in [spezifischen Orten oder Klassen, falls zutreffend] auf async umgestellt.
33 lines
913 B
C#
33 lines
913 B
C#
using DigitalData.Modules.Logging;
|
|
using EnvelopeGenerator.Common;
|
|
using EnvelopeGenerator.Web.Services;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Web.Controllers
|
|
{
|
|
public class BaseController : Controller
|
|
{
|
|
internal DatabaseService database;
|
|
internal LogConfig logConfig;
|
|
internal State state;
|
|
public Logger logger;
|
|
|
|
public BaseController(DatabaseService database, LoggingService logging)
|
|
{
|
|
this.database = database;
|
|
this.logConfig = logging.LogConfig;
|
|
this.logger = logging.LogConfig.GetLogger();
|
|
this.state = database.State;
|
|
}
|
|
|
|
internal ObjectResult ErrorResponse(Exception e)
|
|
{
|
|
logger.Error(e);
|
|
return Problem(
|
|
statusCode: 500,
|
|
detail: e.Message,
|
|
type: "ServerError");
|
|
}
|
|
}
|
|
}
|