public string GetCustomerTypeId(string customerTypeName) { CustomerType customerTypeId; CustomerType.TryParse(customerTypeName, out customerTypeId); return(((int)customerTypeId).ToString()); }