private string GetTypeOrStateName(Guid guid) { TypeAndStateBll typeAndStateBll = new TypeAndStateBll(); TypeAndState model = typeAndStateBll.GetModel(guid); return(model.Name); }
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); }