src/NasaRover.API/Controllers/api/TerrainController.cs
/// <summary>
/// Update a terrain by its Id
/// </summary>
/// <param name="id">The terrain id</param>
/// <param name="name">The rover Name</param>
/// <param name="width">The terrain width</param>
/// <param name="height">The terrain height</param>
Update a terrain by its Id
Update a terrain by its Id
[HttpPut("{id}")]
    public void Update(Guid id, string name, int width, int height)
    {
        _terrainService.Update(id, name, width, height);
    }
[ HttpPut ( " " ) ] public void Update ( Guid id , string name , int width , int height ) { _terrainService . Update ( id , name , width , height ) ; }
Update a terrain by its Id
Update a terrain by its Id
id
Guid
The terrain id
The terrain id
name
string
The rover Name
The rover Name
width
int
The terrain width
The terrain width
height
int
The terrain height
The terrain height