private Uri buildUriToPage(MRZS.Web.Models.Page page) { string reletivePath = string.Empty; if (IsEncodeNeeded) { reletivePath = HttpUtility.UrlEncode(page.PagePath.Substring(page.PagePath.IndexOf("MRZS\\") + 7).Replace("\\", "/")); } else { reletivePath = page.PagePath.Substring(page.PagePath.IndexOf("MRZS\\") + 7).Replace("\\", "/"); } string absolutePath = string.Format("{0}://{1}:{2}", App.Current.Host.Source.Scheme, App.Current.Host.Source.Host, App.Current.Host.Source.Port); Uri Uri = new Uri(string.Format("{0}/{1}", absolutePath, reletivePath), UriKind.Absolute); return Uri; }
private int GetQuestionOrder(MRZS.Web.Models.Question question) { previousResults.OrderByDescending(r => r.EndTime); var lastResult = previousResults.FirstOrDefault(); //lastResult. //currentQuiz.SimpleDifficulty return 0; }