Exemplo n.º 1
0
        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);

                    //Using Generic function insert
                    await AzureHelper.Insert <User>(user); //<User> is not required as Type is taken from user

                    result = true;
                }
            }
            return(result);
        }
Exemplo n.º 2
0
 public static async Task <bool> InsertDelivery(Delivery delivery)
 {
     return(await AzureHelper.Insert <Delivery>(delivery));
 }