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

            _writerDal.Delete(value);
            return(new SuccessResult());
        }
Beispiel #2
0
 public Writer GetByID(int id)
 {
     return(_writerDal.Get(x => x.WriterID == id));
 }
Beispiel #3
0
 public Writer GetByID(int id)
 {
     //writer id si dışarıdan gönderdiğim id e eşit olacak
     return(_writerDal.Get(x => x.WriterID == id));
 }
Beispiel #4
0
 public Writer GetByWriterId(int id)
 {
     return(_writerDal.Get(x => x.WriterId == id));
 }
 public Writer GetWriter(string username, string password)
 {
     return(_writerDal.Get(x => x.WriterEmail == username && x.WriterPassword == password));
 }
 public Writer GetById(int writerId)
 {
     return(_writerDal.Get(p => p.WriterId == writerId));
 }
Beispiel #7
0
 public Writer GetById(int id)
 {
     return(_writerDal.Get(w => w.WriterId == id));
 }
Beispiel #8
0
        public int GetWriterCountWhereLetterA()
        {
            var count = _writerDal.Get(x => x.WriterName.Contains("a") || x.WriterName.Contains("A")).Count();

            return(count);
        }
 public Writer GetByIdBl(Writer writer)
 {
     return(writerDal.Get(x => x.WriterId == writer.WriterId));
 }
 public Writer GetById(int id) => _writerDal.Get(x => x.WriterID == id);
Beispiel #11
0
 public IDataResult <Writer> GetById(int id)
 {
     return(new SuccessDataResult <Writer>(_writerDal.Get(x => x.WriterId == id), "Yazar geldi"));
 }
 public Writer GetWriter(string username, string password)
 {
     return(_writerDal.Get(x => x.WriterMail == username));
 }