Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
 public ActionResult DeleteQa(Qa qa)
 {
     qaService.DeleteQa(qa);
     return(RedirectToAction("GetAllQas"));
 }