Esempio n. 1
0
        public void Delete(Couple couple)
        {
            var engaged1 = couple.Engaged1;
            var engaged2 = couple.Engaged2;

            _coupleBusiness.Delete(couple);

            if (engaged1 != null)
            {
                _engagedServices.Delete(engaged1);
            }
            if (engaged2 != null)
            {
                _engagedServices.Delete(engaged2);
            }
        }
 [HttpDelete("{id}")]// api/Engaged/5
 public void Delete(int id)
 {
     _engagedServices.Delete(id);
 }