public Wedding Create(Wedding wedding) { if (wedding.DeliveryBox?.Id != null) { wedding.DeliveryBox = _deliveryBoxServices.Get(wedding.DeliveryBox.Id); } if (wedding.Package?.Id != null) { wedding.Package = _packageServices.Get(wedding.Package.Id); } _weddingBusiness.Create(wedding); return(wedding); }
[HttpGet] //DeliveryBox public IEnumerable <DeliveryBox> Get() { return(_deliveryBoxServices.Get()); }