Example #1
0
        public MechanicViewModel GetMechanic(int MechanicId)
        {
            var MechanicFromDb    = _MechanicRepository.GetMechanic(MechanicId);
            var MechanicViewModel = mapper.Map <Mechanic, MechanicViewModel>(MechanicFromDb);

            return(MechanicViewModel);
        }
 public MechanicView GetMechanic(int?id)
 {
     return(_mechanicRepository.GetMechanic(id));
 }
 public MechanicViewModel GetMechanic(int Id)
 {
     return(_MechanicRepository.GetMechanic(Id));
 }