public async Task AddBadRequest(string message) { DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.BadRequest); await Task.Run(() => { _messages.Add(domainMessage); }); }
public async Task AddForbidden(string message) { DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.Unauthorized); await Task.Run(() => { _messages.Add(domainMessage); }); }
public async Task AddNotFound(string message) { DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.NotFound); await Task.Run(() => { _messages.Add(domainMessage); }); }