public static bool CheckIfPending() { if (!AppUsers.GetCurrent().View.IsAdmin.ToBool()) { return(false); } IEnumerable <FirstStep> list = FirstStep.GetAll().Where(x => !x.Status); if (list.Any()) { return(true); } return(false); }
public List <Checklist> GetFirstSteps() { List <Checklist> items = new List <Checklist>(); foreach (FirstStep item in FirstStep.GetAll().OrderBy(o => o.Order)) { items.Add(new Checklist { Name = item.Name, Icon = item.Icon, Category = item.Category, CategoryAlias = item.CategoryAlias, Order = item.Order, Description = item.Description, Status = item.Status, Message = item.Message, NavigateUrl = item.NavigateUrl }); } return(items); }