示例#1
0
        public static async Task <bool> Register(string email, string password, string confirmPassword)
        {
            bool result = false;

            if (!string.IsNullOrEmpty(password) && (password == confirmPassword))
            {
                var deliveryPerson = new DeliveryPerson()
                {
                    Email = email, Password = password
                };

                await AzureHelper.Insert(deliveryPerson);

                result = true;
            }

            return(result);
        }
示例#2
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.Insert(user);

                    result = true;
                }
            }

            return(result);
        }
示例#3
0
 public static async Task <bool> InsertDelivery(Delivery delivery)
 {
     return(await AzureHelper.Insert <Delivery>(delivery));
 }