Exemplo n.º 1
0
        public static OpenGraphVM GetOpenGraphVMForPledge(Pledge pledge, HttpRequestBase Request, UrlHelper Url)
        {
            var amt            = CurrencyLogic.ToCurrency(pledge.Contributors, pledge.Originator.Currency).ToString("0.00");
            var currencyPrefix = CurrencyLogic.GetCurrencyPrefix(pledge.Originator.Currency);

            return(new OpenGraphVM()
            {
                type = "article",
                title = "Help Yourself, Helping Others",
                description = $"{currencyPrefix}{amt} Pledged to {pledge.Charity.Name}",
                image = $"{Request.Url.Scheme}://{Request.Url.Authority}{Url.Content("~/Images/Photos/FB_SiteImage1.jpg")}"
            });
        }