public ActionResult DeleteQa(Qa qa) { Log.Debug($"Deleting {qa.Question}"); try { qaService.DeleteQa(qa); Log.Info($"{qa.Question} was deleted succesfully"); } catch (Exception e) { Log.Error(e.ToString()); } return(RedirectToAction("Qas")); }
public ActionResult DeleteQa(Qa qa) { qaService.DeleteQa(qa); return(RedirectToAction("GetAllQas")); }