Cats.Helpers.UserAccountHelper.UserUnitPreference C# (CSharp) Method

UserUnitPreference() public static method

public static UserUnitPreference ( ) : string
return string
        public static string UserUnitPreference()
        {
            var preference = "MT";
            var user = GetUser(HttpContext.Current.User.Identity.Name);
            try
            {
                preference = user.PreferedWeightMeasurment;
            }
            catch (Exception ex)
            {
                // TODO: Log exception hrere
            }

            return preference.ToUpper();
        }

Same methods

UserAccountHelper::UserUnitPreference ( this helper ) : string