/// <summary> /// mapping the data from our db /// or if the hero not in our db then mapping /// a not available hero /// </summary> /// <param name="model"></param> /// <param name="hero"></param> /// <returns></returns> public DetailedHeroViewModel MappingWhenApiNA(DetailedHeroViewModel model, FavouriteSuperHero hero) { return(DetailedHeroMapping.MappingWhenApiNA(model, hero)); }
/// <summary> /// mapping a hero that we get from api, /// to a new favourite superhero, because the hero /// insn't in our db /// </summary> /// <param name="hero"></param> /// <param name="user"></param> /// <returns></returns> public FavouriteSuperHero MappingNewFavouriteHero(SuperHeroById.HeroById hero) { return(DetailedHeroMapping.MappingNewFavouriteHero(hero)); }
/// <summary> /// mappging the data from our api model /// </summary> /// <param name="model"></param> /// <param name="hero"></param> /// <returns></returns> public DetailedHeroViewModel MappingFromApi(DetailedHeroViewModel model, SuperHeroById.HeroById hero) { return(DetailedHeroMapping.MappingFromApi(model, hero)); }