Working with api controller