Files
wticreatorstudio/Modules/FrontendCMS/Services/MerchantContentService.php
T
2024-02-12 22:54:20 -05:00

32 lines
686 B
PHP

<?php
namespace Modules\FrontendCMS\Services;
use \Modules\FrontendCMS\Repositories\MerchantContentRepository;
class MerchantContentService
{
protected $merchantContentRepository;
public function __construct(MerchantContentRepository $merchantContentRepository)
{
$this->merchantContentRepository = $merchantContentRepository;
}
public function getAll(){
return $this->merchantContentRepository->getAll();
}
public function update($data, $id)
{
return $this->merchantContentRepository->update($data, $id);
}
public function editById($id)
{
return $this->merchantContentRepository->edit($id);
}
}