public IResult Delete(int id) { var value = _memberDal.Get(x => x.Id == id); _memberDal.Delete(value); return(new SuccessResult()); }
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); }
public IResult Delete(Member member) { _memberDal.Delete(member); return(new SuccessResult(Messages.MemberDeleted)); }
public void Delete(Member member) { _memberDal.Delete(member); }
public void Delete(Member entity) { _memberDal.Delete(MapperHelper.MapToSameType(entity)); }