Updated Status controller to use repository

ToDo: update Resource controller to use repository

Signed-off-by: marcelr <marcelrienks@gmail.com>