public static async Task <DeliveryPerson> GetDeliveryPerson(string id) { DeliveryPerson person = new DeliveryPerson(); person = (await AzureHelper.MobileService.GetTable <DeliveryPerson>().Where(d => d.Id == id).ToListAsync()).FirstOrDefault(); return(person); }
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); }