@Override public Shop updateShop(Shop shop) { if (shop == null) { return null; } long nowUtcTime = dateFactory.nowUTCDate().getTime(); shop.setModifiedAt(nowUtcTime); return shopDao.save(shop); }
@Override public void archiveShop(long shopKey) { long nowUtcTime = dateFactory.nowUTCDate().getTime(); shopDao.archiveShop(shopKey, nowUtcTime); }