public ActionResult EditQa(Qa qa) { Log.Debug($"Updating {qa.Question}"); if (ModelState.IsValid) { try { qaService.UpdateQa(qa); Log.Info($"{qa.Question} was updated succesfully"); } catch (Exception e) { Log.Error(e.ToString()); } } return(RedirectToAction("Qas")); }
public ActionResult EditQa(Qa qa) { qaService.UpdateQa(qa); return(RedirectToAction("GetAllQas")); }