public IHttpActionResult GetUserInformation(string username) { using (ApplicationDbContext db = new ApplicationDbContext()) { var user = UserManager.FindByEmail(username); return(Ok(new { User = ApplicationUtils.CreateApplicationUserViewModel(user) })); } }