Sunday, November 16, 2014

For getting string as Html decoded

 /// <summary>
        /// For getting string as Html decoded
        /// </summary>
        /// <param name="orginalString"></param>
        /// <param name="limit"></param>
        /// <returns>string</returns>
        public static string GetDecodedString(object evelOrginalString)
        {
            string orginalString = HttpUtility.HtmlDecode(Convert.ToString(evelOrginalString));
            return orginalString;
        }

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...