public ActionResult DeleteComment(int commentId, int messageId) { try { var comments = dataHelper.DeleteComment(commentId, messageId); if (comments == null) { throw new Exception("Empty data. Method: AddCommentes / dataHelper.AddComment returned null."); } return(PartialView("Comments", comments)); } catch (Exception ex) { logger.ErrorMessage("305", ex); return(View("Error", new Error() { ExDescription = ex.Message })); } }