public bool CreateOrder(VOOrder order) { var resultMessage = new { result = false }; Utility.CheckAuthentication(() => DAL.CreateOrder(user.Token, order.IdClient, order.ProductList, order.Address.Latitude, order.Address.Longitude, order.Date, order.Status) , (res) => { resultMessage = JsonConvert.DeserializeAnonymousType(res.Content.ReadAsStringAsync().Result, resultMessage); }, this); return(resultMessage.result); }
public VOOrder GetOrder(string id) { VOOrder order = null; Utility.CheckAuthentication(() => DAL.GetOrder(user.Token, id), (res) => { order = JsonConvert.DeserializeObject <VOOrder>(res.Content.ToString()); if (order != null) { order.Id = id; } }, this); return(order); }
public bool CreateOrder(VOOrder order) { throw new NotImplementedException(); }