private Response DeleteHero(string name)
 {
     heroes.DeleteHero(name);
     return(HttpStatusCode.NoContent);
 }
Ejemplo n.º 2
0
 public void DeleteHero(string name)
 {
     heroes.DeleteHero(name);
     WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NoContent;
 }