示例#1
0
        public ActionResult DeleteSentOutLead(int id)
        {
            var leadFromRepo = _leadsRepo.GetSentOutLeadById(id);

            if (leadFromRepo == null)
            {
                return(NotFound());
            }
            _leadsRepo.DeleteSentOutLeadJobs(id);
            _leadsRepo.DeleteSentOutLead(leadFromRepo);
            _leadsRepo.Save();

            return(NoContent());
        }