Ejemplo n.º 1
0
        public IResult Delete(int id)
        {
            var value = _bookDal.Get(x => x.Id == id);

            _bookDal.Delete(value);
            return(new SuccessResult());
        }
Ejemplo n.º 2
0
        public IResult Delete(Book book)
        {
            IResult result = BusinessRules.Run(CheckIfBookNameExists(book.BookName));

            if (result != null)
            {
                return(result);
            }
            _bookDal.Delete(book);
            return(new SuccessResult(Messages.BookDeleted));
        }
 public void Delete(Book book)
 {
     try
     {
         _bookDal.Delete(book);
     }
     catch
     {
         throw new Exception("Silme gerçekleşemedi!");
     }
 }
Ejemplo n.º 4
0
 public void Delete(int id)
 {
     _bookDal.Delete(new Book {
         Id = id
     });
 }
 public void Delete(Book book)
 {
     _bookDal.Delete(book);
 }
Ejemplo n.º 6
0
 public void Delete(Book book)
 {
     _bookDal.Delete(book);
     Console.WriteLine("Kitap silindi.");
 }
Ejemplo n.º 7
0
 public void Delete(Book book)
 {
     // İş Kodları
     _bookDal.Delete(book);
 }
Ejemplo n.º 8
0
 public IResult Delete(Book book)
 {
     _bookDal.Delete(book);
     return(new SuccessResult());
 }
Ejemplo n.º 9
0
		public void Delete(Book book)
		{
			//throw new NotImplementedException();
			_bookDal.Delete(book);
		}
Ejemplo n.º 10
0
 public IResult Delete(Book book)
 {
     _bookDal.Delete(book);
     return(new SuccessResult(Messages.BookDeleted));
 }
Ejemplo n.º 11
0
 public void Delete(int Id)
 {
     _bookDal.Delete(Id);
 }
Ejemplo n.º 12
0
 public void Delete(Book entity)
 {
     _bookDal.Delete(entity);
 }