public IActionResult GetErrorLogCount() { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } int count = _loggerRepository.ErrorLogCount(); return(Ok(count)); }