In .Net, what happens if you have a Task Controller method with no async await for any of it's operations and the operations of it's dependencies (such as the service classes which are also Task methods not containing async await).
For example, RoomController.cs:
[HttpGet]
public Task<List<Room>> GetRooms()
{
return _roomService.GetRoomsAsync();
}
... RoomService.cs:
public Task<List<Room>> GetRoomsAsync()
{
return _context.Rooms.ToListAsync();
}
Can this cause problems or disadvantages?