Ejemplo n.º 1
0
        private async Task <RedirectToRouteResult> EditUser(string id)
        {
            var user = await userService.GetByIdAsync(id);

            var result = (await operatorController.Edit(user.Id)) as ViewResult;

            if (result == null)
            {
                return(null);
            }

            var model = result.Model as EditOperatorModel;

            model.Email                 = "email";
            model.EmailConfirmed        = true;
            model.ProfileUserTranscript = "new Transcript";

            return((await operatorController.Edit(model)) as RedirectToRouteResult);
        }