Example #1
0
        public async Task <IActionResult> GetAllUsers()
        {
            var ret = await _dbHandler.GetUsersAsync();

            if (ret == null)
            {
                return(BadRequest(new GeneralMessage()
                {
                    Message = "User listing has failed"
                }));
            }
            return(Ok(ret));
        }