public ActionResult DeleteReplyAttachment(RequestAttachments requestAttachments) { try { var result = _attachments.DeleteReplyAttachmentByAttachmentIdAgent(requestAttachments.AttachmentsId); if (result > 0) { TicketHistoryHelper ticketHistoryHelper = new TicketHistoryHelper(); TicketHistory ticketHistory = new TicketHistory { UserId = Convert.ToInt32(_sessionHandler.UserId), Message = ticketHistoryHelper.DeleteTicketReplyAttachment(), ProcessDate = DateTime.Now, TicketId = requestAttachments.TicketId, ActivitiesId = Convert.ToInt16(StatusMain.Activities.DeleteReplyAttachment) }; _ticketHistory.TicketHistory(ticketHistory); return(Json(true, JsonRequestBehavior.AllowGet)); } else { return(Json(false, JsonRequestBehavior.AllowGet)); } } catch (Exception) { throw; } }