Exemple #1
0
        public IResult Delete(int id)
        {
            var value = _memberDal.Get(x => x.Id == id);

            _memberDal.Delete(value);
            return(new SuccessResult());
        }
Exemple #2
0
        public bool Delete(int id)
        {
            var deleteObject = _memberDal.GetOne(x => x.Id == id);

            if (deleteObject != null)
            {
                bool result = _memberDal.Delete(deleteObject);
                if (result)
                {
                    return(true);
                }

                return(false);
            }
            return(false);
        }
Exemple #3
0
 public IResult Delete(Member member)
 {
     _memberDal.Delete(member);
     return(new SuccessResult(Messages.MemberDeleted));
 }
Exemple #4
0
 public void Delete(Member member)
 {
     _memberDal.Delete(member);
 }
Exemple #5
0
 public void Delete(Member entity)
 {
     _memberDal.Delete(MapperHelper.MapToSameType(entity));
 }