mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 14:16:57 -04:00
55 lines
1.1 KiB
PHP
55 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Modules\FrontendCMS\Services;
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
use \Modules\FrontendCMS\Repositories\PricingRepository;
|
|
|
|
class PricingService{
|
|
|
|
protected $pricingRepository;
|
|
|
|
public function __construct(PricingRepository $pricingRepository)
|
|
{
|
|
$this->pricingRepository = $pricingRepository;
|
|
}
|
|
|
|
public function save($data)
|
|
{
|
|
return $this->pricingRepository->save($data);
|
|
}
|
|
|
|
public function update($data,$id)
|
|
{
|
|
return $this->pricingRepository->update($data, $id);
|
|
}
|
|
|
|
public function getAll()
|
|
{
|
|
return $this->pricingRepository->getAll();
|
|
}
|
|
|
|
public function getAllActive()
|
|
{
|
|
return $this->pricingRepository->getAllActive();
|
|
}
|
|
|
|
public function deleteById($id)
|
|
{
|
|
return $this->pricingRepository->delete($id);
|
|
}
|
|
|
|
public function showById($id)
|
|
{
|
|
return $this->pricingRepository->show($id);
|
|
}
|
|
|
|
public function editById($id){
|
|
return $this->pricingRepository->edit($id);
|
|
}
|
|
public function statusUpdate($data, $id){
|
|
return $this->pricingRepository->statusUpdate($data, $id);
|
|
}
|
|
|
|
}
|