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); }
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); }