Пример #1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var logs = await _repository.GetAsync();

                return(Ok(logs));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }