Пример #1
0
        public async Task <IActionResult> GetAllSystem()
        {
            var response = await _dbHandler.GetSystemsAsync();

            if (response == null)
            {
                return(BadRequest(new GeneralMessage()
                {
                    Message = "System listing failed"
                }));
            }
            return(Ok(response));
        }