Exemple #1
0
        public ActionResult AjaxOrders()
        {
            var obj   = _ordersApi.OrderByBedIdContactIdSpa(UserItem.AgencyID, ArrId.FirstOrDefault());
            var model = new ModelOrderGetItem
            {
                ID            = obj.ID,
                UserName      = UserItem.UserName,
                CustomerName  = obj.CustomerName,
                Mobile        = obj.Mobile,
                Address       = obj.Address,
                Time          = obj.Time,
                StartDate     = obj.StartDate,
                ProductID     = obj.ProductID,
                Listproduct   = obj.Listproduct,
                Price         = obj.Price,
                ListItem      = obj.ListItem,
                DiscountItems = _discountAPI.GetDiscountItem(1, UserItem.AgencyID)
            };

            return(View(model));
        }