コード例 #1
0
ファイル: SignupService.cs プロジェクト: cecilfaye04/Bagahe
        async public Task <bool> AddNewUser(SignupFieldsModel SignupField)
        {
            bool isAdded = false;

            //Code for adding the inputs to the database here...
            //Check if the inputs are existing in the DB
            await addDelay();

            //Code for validating if the inputs are successfully added to the db here ...
            isAdded = true;

            return(isAdded);
        }
コード例 #2
0
ファイル: SignupService.cs プロジェクト: cecilfaye04/Bagahe
        async public Task <List <UserInfoModel> > RetrieveUser(SignupFieldsModel SignupField)
        {
            await addDelay();

            //Mock existing accounts in DB
            List <UserInfoModel> mockUser = new List <UserInfoModel>();
            UserInfoModel        userOne  = new UserInfoModel();

            userOne.Username = "******";
            userOne.Email    = "*****@*****.**";
            mockUser.Add(userOne);

            UserInfoModel userTwo = new UserInfoModel();

            userTwo.Username = "******";
            userTwo.Email    = "*****@*****.**";
            mockUser.Add(userTwo);
            return(mockUser);
        }