Exemplo n.º 1
0
        public async Task <Weapon> GetEntity(int id)
        {
            WeaponData weaponData = (WeaponData)(await _repo.FetchOne(id)); // For now let's deal with having to cast our repo data
            Weapon     weapon     = _mapper.Map <Weapon>(weaponData);

            return(weapon);
        }