Sunday, November 16, 2014

Method for Format Error Message

/// <summary>
        /// This method Format Error Message
        /// </summary>
        ///<param name="lstFields"></param>
        ///<returns>DataTable</returns>
        public static string FormatErrorMessage(string errMsg)
        {
            return "<ul><li>" + errMsg + "</li></ul>";
        }

No comments:

Using Authorization with Swagger in ASP.NET Core

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