Exemplo n.º 1
0
 public Hero Post([FromBody] CreateOrUpdateHeroRequest value)
 {
     return(_repository.Create(new Hero
     {
         Category = value.Category,
         HasCape = value.HasCape,
         IsAlive = value.IsAlive,
         Name = value.Name,
         Powers = value.Powers
     }));
 }