public async Task <ActionResult> EditFaq(Faq faqToEdit) { if (string.IsNullOrEmpty(faqToEdit.FaqId)) { _logger.LogError("In cfaq controller, editfaq bad model"); return(BadRequest("No item Available.")); } var numbAffected = await _faqRepo.EditAnFaq(faqToEdit); if (numbAffected == 0) { _logger.LogError("In cfaq controller, nothing returned from edit save"); return(NotFound("The FAQ was not updated.")); } var confirm = _conf.ConfirmResponse(true, "The FAQ Item has been edited successfully."); return(Ok(confirm)); }