Ejemplo n.º 1
0
        public PotionModel GetPotionByReaction(ReactionModel reaction)
        {
            var potion = _reactionRepository.Select()
                         .Where(x => x.Process == reaction.Process)
                         .Where(x => x.Reagent == reaction.Reagent)
                         .Select(x => x.Potion).First();

            return(Mapper.Map <PotionModel>(potion));
        }