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

            _bookDal.Delete(value);
            return(new SuccessResult());
        }
        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!");
     }
 }
Exemplo n.º 4
0
 public void Delete(int id)
 {
     _bookDal.Delete(new Book {
         Id = id
     });
 }
 public void Delete(Book book)
 {
     _bookDal.Delete(book);
 }
Exemplo n.º 6
0
 public void Delete(Book book)
 {
     _bookDal.Delete(book);
     Console.WriteLine("Kitap silindi.");
 }
Exemplo n.º 7
0
 public void Delete(Book book)
 {
     // İş Kodları
     _bookDal.Delete(book);
 }
Exemplo n.º 8
0
 public IResult Delete(Book book)
 {
     _bookDal.Delete(book);
     return(new SuccessResult());
 }
Exemplo n.º 9
0
		public void Delete(Book book)
		{
			//throw new NotImplementedException();
			_bookDal.Delete(book);
		}
Exemplo n.º 10
0
 public IResult Delete(Book book)
 {
     _bookDal.Delete(book);
     return(new SuccessResult(Messages.BookDeleted));
 }
Exemplo n.º 11
0
 public void Delete(int Id)
 {
     _bookDal.Delete(Id);
 }
Exemplo n.º 12
0
 public void Delete(Book entity)
 {
     _bookDal.Delete(entity);
 }