public IDataResult <List <CarImage> > GetAll() { return(new DataResult <List <CarImage> >(_carImageDal.GetAll(), true, Messages.Success)); }
public IDataResult <List <CarImage> > GetAll(int carid) { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(c => c.CarId == carid))); }
public IDataResult <List <CarImage> > GetAll() { //Gerekli İş kodları ve kontrolleri sağlandıktan sonra...> return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll())); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(Messages.Listed, _carImageDal.GetAll())); }
public IDataResult <List <CarImage> > GetCarImages() { var result = _carImageDal.GetAll(); return(new SuccessDataResult <List <CarImage> >(result)); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), "başarılı")); }
//[SecuredOperation("user,admin")] public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), "Hepsi geldi")); }
public IDataResult <List <CarImage> > GetByCarId(int id) { return(new SuccessDataResult <List <CarImage> >(_carImage.GetAll(p => p.CarId == id))); }
public IDataResult <List <CarImage> > GetAll() { Thread.Sleep(3500); return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), Messages.CarImageList)); }
public IDataResult <List <CarImage> > GetById(int id) { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(c => c.Id == id), Messages.CarImageListed)); }
public IDataResult <List <CarImage> > GetAll() { var getAll = _carImageDal.GetAll(); return(new SuccessDataResult <List <CarImage> >(getAll)); }
public IDataResult <List <CarImage> > GetAllCarImages() { /*// todo çok kasacak pc yi büyük boyutlu dosyalarda o yüzden ilerde küçültme işlemi yap max boyut belirle * throw new System.NotImplementedException();*/ return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll())); }
public IDataResult <List <CarImageDto> > GetAll() { return(new SuccessDataResult <List <CarImageDto> >(_mapper.Map <List <CarImageDto> >(_carImageDal.GetAll()))); }
public IDataResult <List <CarImage> > GetAll() { return(_carImageDal.GetAll()); }
private int CarPhotoCount(int carId) { int imgcount = _carImageDal.GetAll(p => p.CarId == carId).Count; return(imgcount); }
public IDataResult <List <CarImage> > GetAll(Expression <Func <CarImage, bool> > filter = null) { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(filter), Messages.CarImagesListed)); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), Messages.ListOperation)); }
public IDataResult <List <CarImage> > GetByCarId(int carId) { List <CarImage> carImageList = _carImageDal.GetAll(c => c.CarId == carId); return(new SuccessDataResult <List <CarImage> >(carImageList)); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_iCarImageDal.GetAll(), Messages.SuccessfullyListedObjects)); }
public IDataResult <List <CarImage> > GetListByCarId(int id) { var Result = new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll().Where(c => c.CarId == id).ToList()); return(Result); }
public IDataResult <List <CarImage> > GetAll() { //Thread.Sleep(6000); return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll())); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), "Resimler Listelendi")); }
public IDataResult <List <CarImage> > GetAll() { var result = _carImageDal.GetAll().ToList(); return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), Messages.CarImageListed)); }
public IDataResult <List <CarImage> > GetAll() { return(new DataResult <List <CarImage> >(_carImageDal.GetAll(), true)); }
public IDataResult <List <CarImage> > GetAll(System.Linq.Expressions.Expression <Func <CarImage, bool> > filter = null) { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(filter))); }
public IDataResult <List <CarImage> > GetAll(Func <CarImage, bool> filter = null) { return(new SuccessDataResult <List <CarImage> >(Messages.Success, _dal.GetAll(filter))); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll(), Messages.CarImagesListed)); }
public IDataResult <List <CarImage> > GetAll() { return(new SuccessDataResult <List <CarImage> >(_carImage.GetAll(), Messages.ListCarImage)); }
public IDataResult <List <CarImage> > GetCarImages() { return(new SuccessDataResult <List <CarImage> >(_carImageDal.GetAll())); }
private IResult CheckCountOfImageByCar(int carId) { int count = _imageDal.GetAll(i => i.CarId == carId).Count; return(count > 5 ? new ErrorResult(Messages.CarImageLimitExceded) : (IResult) new SuccessResult()); }