public ActionResult <Logs> Delete(int id) { var result = logs.DeleteLog(id); if (result == null) { return(NoContent()); } return(Ok(result)); }
public async Task <IActionResult> DeleteLog([Required] int logId) { await _logService.DeleteLog(logId); return(StatusCode(201)); }