public async Task <IList <Charm> > GetRawByIdsAsync(IList <Guid> ids) { var charms = await charmRepository.GetByIdsAsync(ids); if (!charms.Any()) { throw new StreetwoodException(ErrorCode.OrderCharmsNotFound); } return(charms); }
public async Task <IList <Charm> > GetRawByIdsAsync(IList <Guid> ids) { if (!ids.Any()) { return(null); } var charms = await charmRepository.GetByIdsAsync(ids); if (!charms.Any()) { throw new Exception("Cannot find order charms in db."); } return(charms); }