Пример #1
0
        private static string GetHomeworkStatusHtmlString(this Homework homework)
        {
            if (homework == null)
            {
                return("<td></td>");
            }

            return(!homework.IsCompleted
                ? IsNullOrEmpty(homework.ReviewComment) ? $"<td class=\"table-success\">{homework.GetUrl()}</td>" : "<td></td>"
                : $"<td class=\"bg-success\">{homework.GetUrl()}</td>");
        }