public ActionResult Delete(int id, QA model)
        {
            var modelInDb = _qaRepository.GetById(id);
            if (modelInDb != null)
            {
                _qaRepository.Remove(modelInDb);
                UnitOfWork.Save();
            }

            return RedirectToAction("Index");
        }
        public ActionResult Create(QA model)
        {
            if (ModelState.IsValid)
            {
                _qaRepository.Add(model);
                UnitOfWork.Save();
                return RedirectToAction("Index");
            }

            return View(model);
        }
 public ActionResult Create()
 {
     QA model = new QA();
     return View(model);
 }
        public ActionResult Edit(int id, QA model)
        {
            var qaInDb = _qaRepository.GetById(id);
            if (TryUpdateModel(qaInDb))
            {
                UnitOfWork.Save();
                return RedirectToAction("Index");
            }

            return View(model);
        }