public static async Task <bool> Register(string email, string password, string confirmPassword) { bool result = false; if (password == confirmPassword) { var user = new User() { Email = email, Password = password }; result = await AzureHelper.Insert(user); } else { result = false; } return(result); }
public static async Task <bool> Register(string email, string password, string confirmPassword) { bool result = false; if (!string.IsNullOrEmpty(password)) { if (password == confirmPassword) { var user = new AppUser() { Email = email, Password = password }; await AzureHelper.Insert(user); result = true; } } return(result); }
public static async Task <bool> Register(string email, string password, string confirmPassword) { bool result = false; if (!string.IsNullOrEmpty(password)) { if (password == confirmPassword) { var user = new User() { Email = email, Password = password }; //await AzureHelper.MobileService.GetTable<User>().InsertAsync(user); await AzureHelper.Insert(user); result = true; } } return(result); }
public static async Task <bool> InsertDelivery(Delivery delivery) { return(await AzureHelper.Insert <Delivery>(delivery)); }
public static async Task <bool> InsertDelivery(Delivery delivery) { return(await AzureHelper.Insert <Delivery>(delivery)); // use bespoke generic method from helper to insert a new delivery record }