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); }
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); }
public static async Task <bool> InsertDelivery(Delivery delivery) { return(await AzureHelper.Insert <Delivery>(delivery)); }