public async Task <IActionResult> CreateLog(LogToCreateDto logToCreate) { var log = await _service.CreateLog(logToCreate); if (log == null) { return(StatusCode(400)); } return(StatusCode(200, log)); }