Skip to content

Commit f9597a5

Browse files
small formatting...
1 parent 0714c6a commit f9597a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SampleWebApiAspNetCore/Controllers/v1/FoodsController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public ActionResult<FoodDto> AddFood(ApiVersion version, [FromBody] FoodCreateDt
9494

9595
FoodEntity newFoodItem = _foodRepository.GetSingle(toAdd.Id);
9696

97-
return CreatedAtRoute(nameof(GetSingleFood), new { version = version.ToString(), id = newFoodItem.Id },
97+
return CreatedAtRoute(nameof(GetSingleFood),
98+
new { version = version.ToString(), id = newFoodItem.Id },
9899
_mapper.Map<FoodDto>(newFoodItem));
99100
}
100101

@@ -157,7 +158,7 @@ public ActionResult RemoveFood(int id)
157158

158159
[HttpPut]
159160
[Route("{id:int}", Name = nameof(UpdateFood))]
160-
public ActionResult<FoodDto> UpdateFood(int id, [FromBody]FoodUpdateDto foodUpdateDto)
161+
public ActionResult<FoodDto> UpdateFood(int id, [FromBody] FoodUpdateDto foodUpdateDto)
161162
{
162163
if (foodUpdateDto == null)
163164
{

0 commit comments

Comments
 (0)