Sunday, November 16, 2014

Method to get Quantity Value

  public static string GetQty(object value)
        {
            string qty = string.Empty;
            decimal amount;
            if (value != null && Decimal.TryParse(value.ToString(), out amount))
            {
                qty = amount.ToString("N");
            }
            return qty;
        }

No comments:

Using Authorization with Swagger in ASP.NET Core

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