Mikhail Babushkin
Mikhail Babushkin

Reputation: 39

How to implement Azure MobileAppController C#

I have 2 TableController for 2 my tables. Also I need another controller, which process data from tables.

Azure's documentation says I should declare ApiController following way:

[MobileAppController]
public class CustomController : ApiController
{
      //...
}

But I don't realize how to get any data from tables to process it. I tried to create new instance of Table's Controller, but it doesn't work such way. Any solutions?

Upvotes: 0

Views: 385

Answers (1)

Adrian Hall
Adrian Hall

Reputation: 8035

To manage the tables within your custom API, just use regular entity framework code. You can find a tutorial here: http://www.entityframeworktutorial.net/entityframework6/introduction.aspx

Upvotes: 1

Related Questions