private string GetUserTickets(int currentUserId) { List <RolesEnum> roles = new List <RolesEnum>(); roles.Add(RolesEnum.PM); roles.Add(RolesEnum.DEV); roles.Add(RolesEnum.QA); roles.Add(RolesEnum.Leader); HideUserEntity entity = userApp.GetHideUserByUserId(currentUserId); string hideUserIds = ""; if (entity != null) { hideUserIds = entity.HideUserIds; } List <UserTicketModel> userTickets = userApp.SearchUserWithRole(roles, hideUserIds); string strUserTickets = JsonConvert.SerializeObject(userTickets); return(strUserTickets); }