public Relations DeleteRelation(int id)
        {
            var relation = GetById(id);

            if (relation != null)
            {
                dbContext.Remove(relation);
            }
            return(relation);
        }
Example #2
0
        public People DeletePeople(int id)
        {
            var people = GetById(id);

            if (people != null)
            {
                dbContext.Remove(people);
            }
            return(people);
        }