public PointOfSale MapEntity(PointOfSaleRequest request) { PointOfSale pointOfSale = new PointOfSale(request.Id, request.Number, request.TypePointOfSale); UpdateOrder(pointOfSale); UpdateOrderItem(pointOfSale); return(pointOfSale); }
public IHttpActionResult Update([FromBody] PointOfSaleRequest request) { pointOfSaleAppService.Update(request); return(Ok()); }
public IHttpActionResult Insert([FromBody] PointOfSaleRequest request) { var response = pointOfSaleAppService.Insert(request); return(Ok(response)); }