// GET api/TelegraphStation public IEnumerable <TelegraphStation> Get() { this.OnBeforeGet(); var results = this.SDM.GetAllTelegraphStations <TelegraphStation>(); TelegraphStation.CheckExpand(this.SDM, results, HttpContext.Current.Request["expand"]); this.OnAfterGet(results); return(results); }
// POST api/TelegraphStations/{telegraphstation-guid} public TelegraphStation Put([FromBody] TelegraphStation telegraphstation) { if (telegraphstation.TelegraphStationId == Guid.Empty) { telegraphstation.TelegraphStationId = Guid.NewGuid(); } this.OnBeforePut(telegraphstation); this.SDM.Upsert(telegraphstation); this.OnAfterPut(telegraphstation); return(telegraphstation); }
partial void OnAfterDelete(TelegraphStation telegraphstation);
partial void OnBeforeDelete(TelegraphStation telegraphstation);
partial void OnAfterPut(TelegraphStation telegraphstation);
partial void OnBeforePut(TelegraphStation telegraphstation);
partial void OnAfterGetById(TelegraphStation TelegraphStations, Guid telegraphstationId);