public IActionResult DeleteComment(int id, int lessonId) { try { UserSessionContext userSession = new UserSessionContext(this.HttpContext); LessonBusiness lessonManager = new LessonBusiness(DbContext); lessonManager.DeleteComment(id, userSession.CurrentUser); this.SetSuccessfulSave(); } catch (Exception ex) { this.AddError(ex.Message); } return(RedirectToAction("Index", new { pageAction = Enumerations.PageAction.Edit, lessonId = lessonId })); }