<?php

namespace Modules\Customer\Services;
use \Modules\Customer\Repositories\CustomerRepository;

class CustomerService
{
    protected $customerRepository;

    public function __construct(CustomerRepository  $customerRepository)
    {
        $this->customerRepository = $customerRepository;
    }

    public function getAll()
    {
        return $this->customerRepository->getAll();
    }

    public function find($id)
    {
        return $this->customerRepository->find($id);
    }

    public function store($data){
        return $this->customerRepository->store($data);
    }

    public function update($data, $id){
        return $this->customerRepository->update($data, $id);
    }

    public function destroy($id){
        return $this->customerRepository->destroy($id);
    }
    public function imageDelete($data){
        return $this->customerRepository->imageDelete($data);
    }
    public function BulkUploadStore($data){
        return $this->customerRepository->BulkUploadStore($data);
    }

    public function posCustomer()
    {
        return $this->customerRepository->posCustomer();
    }

    public function getCustomersByAjax($search){
        return $this->customerRepository->getCustomersByAjax($search);
    }


}
