public string GetSearchList(string searchName) { var list = PosSalemanBll.GetList(UserContext.CurrentUser.HotelId, searchName); list = list.Where(a => a.IsEnabled).ToList(); return(JsonConvert.SerializeObject(list)); }
public string GetList(string searchName) { var list = PosSalemanBll.GetList(UserContext.CurrentUser.HotelId, searchName); return(JsonConvert.SerializeObject(list)); }