public static async Task <bool> RegisterUser(string email, string password, string confirmPassword)
        {
            bool result = false;

            if (!string.IsNullOrEmpty(password))
            {
                if (password == confirmPassword)
                {
                    var user = new DeliveryPerson()
                    {
                        Email    = email,
                        Password = password
                    };
                    await AzureHelper.Insert(user);

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