Sunday, November 16, 2014

HTML Decode field in List

 /// <summary>
        /// HTML Decode field in List
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="lst"></param>
        /// <param name="field"></param>
        /// <returns></returns>
        public static List<T> HtmlDecode<T>(List<T> lst, string field)
        {
            lst.ForEach(itm => HtmlDecode(itm, field));
            return lst;
        }

No comments:

Using Authorization with Swagger in ASP.NET Core

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