Ejemplo n.º 1
0
        public static void RaiseEvent(OrderDetailBussines det)
        {
            var handler = OnDetailsChanged;

            if (handler != null)
            {
                OnDetailsChanged(det);
            }
        }
Ejemplo n.º 2
0
        private static async Task <ReturnedSaveFuncInfo> SaveDetAsync(OrderDetailBussines cls)
        {
            var res = new ReturnedSaveFuncInfo();

            try
            {
                using (var client = new HttpClient())
                {
                    var json    = Json.ToStringJson(cls);
                    var content = new StringContent(json, Encoding.UTF8, "application/json");
                    var result  = await client.PostAsync(Utilities.WebApi + "/api/OrderDetail/SaveAsync", content);
                }
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
                res.AddReturnedValue(ex);
            }

            return(res);
        }