private Response DeleteHero(string name)
 {
     heroes.DeleteHero(name);
     return(HttpStatusCode.NoContent);
 }
Пример #2
0
 public void DeleteHero(string name)
 {
     heroes.DeleteHero(name);
     WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NoContent;
 }