C# Class Superheroes.Services.SuperheroesService

Inheritance: ISuperheroesService
Afficher le fichier Open project: TelerikAcademy/Databases

Méthodes publiques

Méthode Description
AddPowerToSuperhero ( Superhero superhero, string powerName ) : void
CreateSuperhero ( string superheroName, string secretIdentity, string cityName ) : Superhero
CreateSuperhero ( string superheroName, string secretIdentity, string cityName, IEnumerable powerNames ) : Superhero
GetAllSuperheroes ( ) : IQueryable
GetSupeheroesWithPower ( string powerName ) : IQueryable
SuperheroesService ( IUnitOfWork unitOfWork, IRepository superheroes, IRepository powers, IRepository cities ) : System

Private Methods

Méthode Description
LoadOrCreateCity ( string cityName ) : City
LoadOrCreatePower ( string powerName ) : Power

Method Details

AddPowerToSuperhero() public méthode

public AddPowerToSuperhero ( Superhero superhero, string powerName ) : void
superhero Superheroes.Models.Superhero
powerName string
Résultat void

CreateSuperhero() public méthode

public CreateSuperhero ( string superheroName, string secretIdentity, string cityName ) : Superhero
superheroName string
secretIdentity string
cityName string
Résultat Superheroes.Models.Superhero

CreateSuperhero() public méthode

public CreateSuperhero ( string superheroName, string secretIdentity, string cityName, IEnumerable powerNames ) : Superhero
superheroName string
secretIdentity string
cityName string
powerNames IEnumerable
Résultat Superheroes.Models.Superhero

GetAllSuperheroes() public méthode

public GetAllSuperheroes ( ) : IQueryable
Résultat IQueryable

GetSupeheroesWithPower() public méthode

public GetSupeheroesWithPower ( string powerName ) : IQueryable
powerName string
Résultat IQueryable

SuperheroesService() public méthode

public SuperheroesService ( IUnitOfWork unitOfWork, IRepository superheroes, IRepository powers, IRepository cities ) : System
unitOfWork IUnitOfWork
superheroes IRepository
powers IRepository
cities IRepository
Résultat System