public static SuperHeroClient ToClient(this SuperHeroGlobal SH) { return(new SuperHeroClient() { Id = SH.Id, Name = SH.Name, Strenght = SH.Strenght, Stamina = SH.Stamina, Intelligence = SH.Intelligence, Charism = SH.Charism }); }
public void Put([FromBody] SuperHeroGlobal entity) { _repo.Update(entity); }
public void Post([FromBody] SuperHeroGlobal entity) { _repo.Create(entity); }