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