Пример #1
0
 /// <summary>
 /// Method to get list of car instances for a user using User Id
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public List <Car> GetAllUserCars(string userId)
 {
     if (userBusiness.GetActiveUser(userId) != null)
     {
         return(carDataAccess.GetListOfCarInstances(userId));
     }
     else
     {
         return(null);
     }
 }