示例#1
0
        public async Task <ActionResult> HentAlle()
        {
            List <FAQ> alleFAQs = await _db.HentAlle();

            if (alleFAQs.IsNullOrEmpty())
            {
                return(NotFound("Ingen spørsmål funnet"));
            }
            return(Ok(alleFAQs));
        }
        public async Task <ActionResult> HentAlle()
        {
            List <FAQ> alleFAQs = await _db.HentAlle();

            return(Ok(alleFAQs));
        }