public IResult Add(Ogrenci ogrenci) { ogrenci.Sifre = BCrypt.Net.BCrypt.HashPassword(ogrenci.Sifre); _ogrencidal.Add(ogrenci); return(new SuccessResult(Messages.Added)); }
public IResult Add(Ogrenci ogrenci) { //ValidationTools.Validate(new OgrenciValidator(), ogrenci); _ogrenciDal.Add(ogrenci); return(new SuccessResult(Messages.Added)); }
public void Add(Ogrenci ogrenci) { ValidationTools.Validate(new OgrenciValidator(), ogrenci); _ogrenciDal.Add(ogrenci); }
public void Add(Ogrenci ogrenci) { _OgrenciDal.Add(ogrenci); }