public PointOfSale MapEntity(PointOfSaleRequest request)
        {
            PointOfSale pointOfSale = new PointOfSale(request.Id, request.Number, request.TypePointOfSale);

            UpdateOrder(pointOfSale);

            UpdateOrderItem(pointOfSale);

            return(pointOfSale);
        }
Esempio n. 2
0
        public IHttpActionResult Update([FromBody] PointOfSaleRequest request)
        {
            pointOfSaleAppService.Update(request);

            return(Ok());
        }
Esempio n. 3
0
        public IHttpActionResult Insert([FromBody] PointOfSaleRequest request)
        {
            var response = pointOfSaleAppService.Insert(request);

            return(Ok(response));
        }