Exemple #1
0
    private string GetTypeOrStateName(Guid guid)
    {
        TypeAndStateBll typeAndStateBll = new TypeAndStateBll();
        TypeAndState    model           = typeAndStateBll.GetModel(guid);

        return(model.Name);
    }
Exemple #2
0
    public string getVehicleName(string guid)
    {
        string result = string.Empty;

        if (guid != null)
        {
            TypeAndStateBll typeAndStateBll = new TypeAndStateBll();
            if (typeAndStateBll.Exists(new Guid(guid)))
            {
                result = typeAndStateBll.GetModel(new Guid(guid)).Name;
            }
        }
        return(result);
    }