Ejemplo n.º 1
0
        public IActionResult RemoveJobs(
            [FromRoute][Required] string device)
        {
            try
            {
                _actionModel.RemoveJob(new DeviceId(device));

                return(FormattedOk());
            }
            catch (FormatException e)
            {
                Logger.Error(e);
                return(BadRequest("DeviceId fehlerhaft."));
            }
            catch (Exception e)
            {
                Logger.Error(e);
                return(FormattedInternalServerError(e.ToString()));
            }
        }