コード例 #1
0
        public async Task <JsonResult> Delete(long id)
        {
            await _justificationFactory.DeleteJustification(id);

            Logger.LogInformation($"Justification {id} deleted by {UserSecurity.SamAccountName}.");

            return(Json(JsonEnvelope.Success()));
        }
コード例 #2
0
        public async Task <JsonResult> Delete(long id)
        {
            Logger.LogInformation($"{UserSecurity.SamAccountName} deleted ports and justification for justification id {id}");
            await _portFactory.DeletePort(id);

            await _justificationFactory.DeleteJustification(id);

            return(Json(JsonEnvelope.Success()));
        }