public ActionResult EditTicket(string trackingid) { try { var ticketsViewModel = _tickets.EditTicketsByTicketId(trackingid); ticketsViewModel.HasAttachment = _attachments.CheckAttachmentsExistbyTicketId(trackingid); ticketsViewModel.ListofCategory = _category.GetAllActiveSelectListItemCategory(); ticketsViewModel.ListofPriority = _priority.GetAllPrioritySelectListItem(); ticketsViewModel.ListofAttachments = _attachments.GetListAttachmentsByAttachmentId(ticketsViewModel.TicketId); return(View(ticketsViewModel)); } catch (Exception) { throw; } }