コード例 #1
0
        public async Task <ActionResult> Endre(FAQ endretFAQ)
        {
            if (ModelState.IsValid)
            {
                var returnOK = await _db.Endre(endretFAQ);

                if (!returnOK)
                {
                    return(NotFound("FAQ kunne ikke endres"));
                }
                return(Ok("FAQ ble endret"));
            }
            return(BadRequest("Feil i inputvalidering"));
        }