When I try
user = System.Web.UI.Page.CurrentUser
or
user = System.Web.UI.Page.User.Identity
I get an erro
There are many ways to do it (basically, they are all the same)
User.Identity // in the controller
HttpContext.User.Identity // in the controller
System.Web.HttpContext.Current.User.Identity // anywhere
Page.User property works when there's a Page HTTP handler that's processing the current request. As in an MVC controller, the request has not been handed to a Page class, it won't work.
in the controller.