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)); }
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)); }