Example #1
0
 // PUT api/<controller>/5
 public void Put(int id, [FromBody] TerritoryDto territory)
 {
     _manager.PutTerritory(id, territory.ToDto <Territory>());
 }
Example #2
0
 // POST api/<controller>
 public void Post([FromBody] TerritoryDto territory)
 {
     _manager.PostTerritory(territory.ToDto <Territory>());
 }