public BodyAreaController(IBodyAreaRepository bAreaRepo, IBodyPartRepository bPartRepo, IMuscleRepository muscleRepo)
 {
     bodyAreaRepository = bAreaRepo;
     bodyPartRepository = bPartRepo;
     muscleRepository   = muscleRepo;
     dbGetter.AssignData(muscleRepository.Muscles.ToList(), bodyAreaRepository.BodyAreas.ToList(), bodyPartRepository.BodyParts.ToList());
 }
Exemple #2
0
        public static MuscleViewModel CreateMuscleViewModel(this IMuscleRepository muscleRepo, IBodyPartRepository bPartRepo, int?Id)
        {
            Muscle          muscle   = muscleRepo.GetMusceById(Id);
            MuscleViewModel muscleVM = new MuscleViewModel()
            {
                BodyPartId  = muscle.BodyPartId,
                Description = muscle.Description,
                Image       = muscle.Image,
                MuscleId    = muscle.MuscleId,
                Name        = muscle.Name,
                BodyParts   = bPartRepo.BodyParts.ToList()
            };

            return(muscleVM);
        }
 public AddMuscleMaintenanceProcessor(IMapper mapper, IUnitOfWork unityOfWork, IMuscleRepository muscleRepository)
 {
     _mapper           = mapper;
     _unityOfWork      = unityOfWork;
     _muscleRepository = muscleRepository;
 }
 public AddMuscleMaintenanceProcessor(IMapper mapper, IUnitOfWork unityOfWork, IMuscleRepository muscleRepository)
 {
     _mapper = mapper;
     _unityOfWork = unityOfWork;
     _muscleRepository = muscleRepository;
 }
Exemple #5
0
 public MuscleController(IMuscleRepository muscleRepository)
 {
     _muscleRepository = muscleRepository;
 }