public async Task <IActionResult> Create(Member member) { MemberContext context = HttpContext.RequestServices.GetService(typeof(Models.MemberContext)) as MemberContext; if (ModelState.IsValid) { await context.CreateUser(member); } return(View()); }