private string GetSelectedTicketStatus() { List <ListItem> status = this.GetTicketStatus(); var cache = new CookieHelper().Get($"TicketStatus_{userEntity.Role}_{DateTime.Now.ToString("yyyyMMdd")}"); if (!string.IsNullOrEmpty(cache) && !cache.Equals("[]")) { var cacheStatus = new JSONHelper().GetEntity <List <string> >(cache); status = status.FindAll(it => cacheStatus.Contains(it.Value)); } string statusJson = string.Join(",", status.Select(it => it.Value).ToList()); return(statusJson); }