예제 #1
0
        public ActionResult <Logs> Delete(int id)
        {
            var result = logs.DeleteLog(id);

            if (result == null)
            {
                return(NoContent());
            }

            return(Ok(result));
        }
예제 #2
0
        public async Task <IActionResult> DeleteLog([Required] int logId)
        {
            await _logService.DeleteLog(logId);

            return(StatusCode(201));
        }