private static string GetWeeks(ICollection <DayOfWeek> daysOfWeek)
        {
            var sb = new StringBuilder();

            // get description for every week
            foreach (var dayOfWeek in daysOfWeek)
            {
                if (sb.Length > 0)
                {
                    sb.Append(", ");
                }
                sb.Append(MultiLangResourceManager.Instance[MultiLangResourceName.InDayOfWeek(dayOfWeek)]);
            }

            return(sb.ToString());
        }
 public static string DeletionErrorMessage(string entityName, IEnumerable <string> items) =>
 items == null || items.Count() <= 1
     ? string.Format(MultiLangResourceManager.Instance[MultiLangResourceName.DeletionErrorMessageOne],
                     MultiLangResourceManager.Instance[MultiLangResourceName.Singular(entityName)], string.Join(";", items))
     : string.Format(MultiLangResourceManager.Instance[MultiLangResourceName.DeletionErrorMessagePlural],
                     MultiLangResourceManager.Instance[MultiLangResourceName.Plural(entityName)], string.Join(";", items));
 public static string DeletionConfirmationMessage(string entityName, IEnumerable <string> items) =>
 string.Format(MultiLangResourceManager.Instance[MultiLangResourceName.DeletionConfirmationMessage],
               items == null || items.Count() <= 1
         ? MultiLangResourceManager.Instance[MultiLangResourceName.Singular(entityName)]?.ToLower()
         : MultiLangResourceManager.Instance[MultiLangResourceName.Plural(entityName)]?.ToLower(),
               string.Join(";", items));