Skip to content

Commit

Permalink
More Annotation Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
taevt-iscte committed Jun 23, 2024
1 parent d10dd67 commit 413fd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controllers/EmployeeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ namespace Restaurant_Management.Controllers
public class EmployeeController(IEmployeeRepository _employeeRepository, IRestaurantRepository _restaurantRepository, IMapper _mapper) : ControllerBase
{
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(IEnumerable<Employee>))]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(IEnumerable<EmployeeDto>))]
public IActionResult GetEmployees()
{
return Ok(_mapper.Map<List<EmployeeDto>>(_employeeRepository.GetEmployees()));
}

[HttpGet("{id}")]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Employee))]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(EmployeeDto))]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
public IActionResult GetEmployee(int id)
Expand Down

0 comments on commit 413fd25

Please sign in to comment.