Ejemplo n.º 1
0
        public async Task <ModelRegisterActive_InterfaceData> ActiveUserAccountInterfaceAsync(string RegisterId)
        {
            ModelRegisterActive_InterfaceData resp = new ModelRegisterActive_InterfaceData();

            resp.listfirstname = await GetAllFirstNameAsync();

            resp.listfaculty = await GetAllFacultyAsync();

            resp.UserAccount = await GetUserAccountInfoByRegisterId(RegisterId);

            return(resp);
        }
        public async Task <IActionResult> ActiveUserAccountInterface(string RegisterId)
        {
            string registerId = Encoding.UTF8.GetString(Convert.FromBase64String(RegisterId));

            ModelRegisterActive_InterfaceData e = await _IRegisterUserService.ActiveUserAccountInterfaceAsync(registerId);

            if (e != null)
            {
                return(Ok(e));
            }
            return(BadRequest());
        }