Пример #1
0
        public async Task <JsonResult> EditOrder(SpotGoodsOrderEdit request)
        {
            var manager = new SpotGoodsManager(User);
            var result  = await manager.UpdateOrderCustomerInfo(request.SpotGoodsId, request.Address, request.CustomerPhone, request.CustomerName, request.SfNo);

            await manager.UpdateSpotGoodsStatus(request.SpotGoodsId, request.Status);

            return(Json(result));
        }
Пример #2
0
        public async Task <IHttpActionResult> UpdateOrderCustomerInfo(CustomerAddressViewModel request)
        {
            var manager = new SpotGoodsManager();
            var result  = await manager.UpdateOrderCustomerInfo(request.SpotGoodsId, request.Address, request.CustomerPhone, request.CustomerName);

            await manager.UpdateSpotGoodsStatus(request.SpotGoodsId, request.IsSF?SpotGoodsStatus.SF : SpotGoodsStatus.PickBySelf);

            return(Ok(result));
        }